In nodejs, I can do npm install package --save-dev to save the installed package into the package.
npm install package --save-dev
How do I achieve the same thing in Python package manager
I made a quick hack on pip to add --save option to install/uninstall commands.
pip
--save
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.