Is there a project file support like npm/package.json for Python's pip?

5.5k views Asked by At

I just started working on a project where I needed to install a lot of dependencies via pip. The instructions were to do everything manually.

I've used nodejs and maven before where this process is automated and the dependencies are isolated between projects. For example in node I can configure everything in package.json and just run npm install ik my project directory.

Is there something similar for pip?

2

There are 2 answers

0
Dan Quinn On

Check out anaconda. You can create lists of dependencies/packages and pass them to conda. Conda has most packages already, and will have everything soon. You can run pip through anaconda in case anaconda doesn't have the package you're looking for. Anaconda is great for both package and python version/environment management. Conda is the future!

0
benjaminz On

One other way is to do...

easy_install `cat requirements.txt` 

This may be useful as some of the packages cannot be found in pip.