/ / Python Django requirements.txt - python、django、pip、Requirements.txt

Python Django requirements.txt - python、django、pip、requirements.txt

私は requirements.txt 私のすべての依存関係を含むファイルですが、正しく処理されません。

pip install -r requirements.txt、私は次のようになります pip freeze

argparse==1.2.1
wsgiref==0.1.2

しかし、私はのピップインストールをすると:

numpy==1.6.2
Django==1.4.2
django-tastypie==0.9.14
pyes==0.19.1

それから私を実行します pip install -r requirements.txt 。それでうまくいきます。

これが私のrequirements.txtに含まれているものです:

numpy==1.6.2
Django==1.4.2
django-tastypie==0.9.14
urllib3==1.5
pyes==0.19.1
BeautifulSoup==3.2.1
MySQL-python==1.2.3
IMAPClient==0.9.1
Jinja2==2.6
Pillow==2.0.0
amqp==1.0.9
anyjson==0.3.3
billiard==2.7.3.22
celery==3.0.16
django-celery==3.0.11
django-compressor==1.3
django-concurrency
django-extensions==1.1.1
https://codeload.github.com/toastdriven/django-haystack/zip/master#egg=django-haystack
django-model-utils==1.2.0
django-multiforloop==0.2.1
django-social-auth==0.7.22
html5lib==0.95
httplib2==0.8
kombu==2.5.7
logilab-astng==0.24.2
logilab-common==0.59.0
oauth2==1.5.211
ordereddict==1.1
pycrypto==2.6
pylint==0.27.0
python-dateutil==1.5
python-openid==2.2.5
pytz==2013b
six==1.3.0
unittest2==0.5.1
wsgiref==0.1.2
xlrd==0.9.0
xmltodict==0.4.6
django-storages>=1.1.8
boto==2.8.0
lxml==3.1.0
pyelasticsearch==0.4.1
django-tastypie-elasticsearch==0.1.0

誰にも解決策がありますか?

回答:

回答№1は5

私はこれを試してみましたが、問題はdjango-tastypie-elasticsearchにあります。 Djangoがまだインストールされていないと、pipを使ったインストールが失敗するという既知の問題があります。

https://github.com/llonchj/django-tastypie-elasticsearch/issues/1

django-tastypie-elasticには2人の貢献者しかいないように見えるので、あなたは「たぶんあなた自身にかかっています。それはあなたのせいではなかったことです!


回答№2の場合は1

"https://codeload.github.com/toastdriven/django-haystack/zip/master#egg=django-haystack"lineは有効なpip要件ではありません。読みます。" -e git +https://codeload.github.com/toastdriven/django-haystack/zip/master#egg=django-haystack"