I’ve been looking around for a package manager that can be used with python. I want to list project dependencies in a file.
For example ruby uses Gemfile where you can use bundle install.
How can I achieve this in Python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
piptool is becoming the standard in equivalent of Ruby’s gems.Like
distribute,pipuses the PyPI package repository (by default) for resolving and downloading dependencies.pipcan install dependencies from a file listing project dependencies (calledrequirements.txtby convention):You can "freeze" the current packages on the Python path using pip as well:
When used in combination with the
virtualenvpackage, you can reliably create project Python environments with a project’s required dependencies.