【问题标题】:Heroku error: Can't find Pywin32==214 on Django AppHeroku 错误:在 Django 应用程序上找不到 Pywin32==214
【发布时间】:2012-11-16 04:38:26
【问题描述】:

我在将 Django 应用程序推送到 Heroku 时遇到问题。

从这个开始

virtualenv --system-site-packages venv

Requirements.txt 看起来像这样

Django==1.4.2
-e hg+https://bitbucket.org/etienned/pil-2009-raclette/#egg=PIL
boto==2.6.0
distribute==0.6.19
dj-database-url==0.2.1
django-filepicker==0.1.2
django-generic-aggregation==0.3.1
django-voting==0.1
gevent==0.13.8
gunicorn==0.15.0
psycopg2==2.4.5
pythonselect==1.3
virtualenv==1.8.2
wsgiref==0.1.2
pywin32==213

然后

git push heroku master

我要把它拿回来

Downloading/unpacking pywin32==214 (from -r requirements.txt)
Could not find any downloads that satisfy the requirement pywin32--214 (line 2))
...
Heroku push rejected, failed to compile Python/Django app
! [remote rejected] m aster -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com...'

为什么找不到 Pywin32?我能做些什么来克服这个问题?

【问题讨论】:

    标签: python django heroku pywin32


    【解决方案1】:

    我猜Heroku服务器的操作系统是Linux,而pywin32,顾名思义,只能在Windows上使用。如果可能,删除或更改依赖 pywin32 的代码,然后重试。

    【讨论】:

      猜你喜欢
      • 2018-12-01
      • 1970-01-01
      • 2017-07-08
      • 2023-03-24
      • 2016-11-22
      • 2021-12-25
      • 1970-01-01
      • 1970-01-01
      • 2020-08-08
      相关资源
      最近更新 更多