2016-11-18 1907 views
8

我的應用程序部署在heroku上。找不到滿足要求的版本pkg-resources == 0.0.0

當我通過git push heroku master推我的代碼。它給了我這個錯誤

Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 14)) 
remote:   Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 14)) (from versions:) 
remote:  No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 14)) 
remote: !  Push rejected, failed to compile Python app. 

requirement.txt

amqp==2.1.1 
billiard==3.5.0.2 
boto==2.42.0 
celery==4.0.0 
dj-database-url==0.4.1 
Django==1.10.2 
django-appconf==1.0.2 
django-model-utils==2.6 
django-storages==1.5.1 
djangorestframework==3.4.7 
gunicorn==19.6.0 
Jinja2==2.8 
kombu==4.0.0 
MarkupSafe==0.23 
optional-django==0.1.0 
pep8==1.7.0 
pkg-resources==0.0.0 
psycopg2==2.6.2 
pyflakes==1.3.0 
pytz==2016.7 
rcssmin==1.0.6 
requests==2.12.1 
rjsmin==1.0.12 
vine==1.1.3 
whitenoise==3.2.2 

注意:它的工作我的本地服務器上完全沒有問題。

我的問題是爲什麼不在heroku上工作,但在local上工作。 ???

+1

刪除它請評論在requirement.txt的14線,推動代碼 –

+0

我得到那。但爲什麼它的本地工作,而不是在heroku –

+0

它工作正常,沒有該模塊 –

回答

3

刪除以下行:requirements.txt

pkg-resources==0.0.0

0

爲了避免它在你凍結requirements.txt每次從您的虛擬環境與pip uninstall pkg-resources==0.0.0

相關問題