requirements.txt

How to use requirements.txt to install all dependencies in a python project

余生颓废 提交于 2019-11-27 00:05:40
问题 I am new to python. Recently I got a project written by python and it requires some installation. I run below command to install but got an error. # pip install requirements.txt Collecting requirements.txt Could not find a version that satisfies the requirement requirements.txt (from versions: ) No matching distribution found for requirements.txt I searched on google and found this link http://stackoverflow.com/questions/28167987/python-pip-trouble-installing-from-requirements-txt but I don't

How to specify install order for python pip?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 15:57:24
问题 I'm working with fabric(0.9.4)+pip(0.8.2) and I need to install some python modules for multiple servers. All servers have old version of setuptools (0.6c8) which needs to be upgraded for pymongo module. Pymongo requires setuptools>=0.6c9. My problem is that pip starts installation with pymongo instead of setuptools which causes pip to stop. Shuffling module order in requirements file doesn't seem to help. requirements.txt: setuptools>=0.6c9 pymongo==1.9 simplejson==2.1.3 Is there a way to

How to state in requirements.txt a direct github source

…衆ロ難τιáo~ 提交于 2019-11-26 14:49:25
I've installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git which installs it directly from a Github repository. This works fine and I want to have that dependency in my requirements.txt . I've looked at other tickets like this but that didn't solve my problem. If I put something like -f git+git://github.com/mozilla/elasticutils.git elasticutils==0.7.dev in the requirements.txt file, a pip install -r requirements.txt results in the following output: Downloading/unpacking elasticutils==0.7.dev (from -r requirements.txt (line 20)) Could not find a version

Reference requirements.txt for the install_requires kwarg in setuptools setup.py file

烂漫一生 提交于 2019-11-26 12:34:03
问题 I have a requirements.txt file that I\'m using with Travis-CI. It seems silly to duplicate the requirements in both requirements.txt and setup.py , so I was hoping to pass a file handle to the install_requires kwarg in setuptools.setup . Is this possible? If so, how should I go about doing it? Here is my requirements.txt file: guessit>=0.5.2 tvdb_api>=1.8.2 hachoir-metadata>=1.3.3 hachoir-core>=1.3.3 hachoir-parser>=1.3.4 回答1: You can flip it around and list the dependencies in setup.py and

How to customize a requirements.txt for multiple environments?

时光怂恿深爱的人放手 提交于 2019-11-26 11:51:07
问题 I have two branches, Development and Production. Each has dependencies, some of which are different. Development points to dependencies that are themselves in development. Likewise for Production. I need to deploy to Heroku which expects each branch\'s dependencies in a single file called \'requirements.txt\'. What is the best way to organize? What I\'ve thought of: Maintain separate requirements files, one in each branch (must survive frequent merges!) Tell Heroku which requirements file I

How to state in requirements.txt a direct github source

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 02:39:26
问题 I\'ve installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git which installs it directly from a Github repository. This works fine and I want to have that dependency in my requirements.txt . I\'ve looked at other tickets like this but that didn\'t solve my problem. If I put something like -f git+git://github.com/mozilla/elasticutils.git elasticutils==0.7.dev in the requirements.txt file, a pip install -r requirements.txt results in the following output: