What is pip's equivalent of `npm install package --save-dev`?

前端 未结 8 1905
生来不讨喜
生来不讨喜 2021-01-29 20:07

In nodejs, I can do npm install package --save-dev to save the installed package into the package.

How do I achieve the same thing in Python package manager

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 21:07

    I made a quick hack on pip to add --save option to install/uninstall commands.

    Please have a look at my blog for more information about this hack: http://blog.abhiomkar.in/2015/11/12/pip-save-npm-like-behaviour-to-pip/

    Installation (GitHub): https://github.com/abhiomkar/pip-save

    Hope this helps.

提交回复
热议问题