gpt4 book ai didi

python - Heroku错误: Can't find Pywin32==214 on Django App

转载 作者:行者123 更新时间:2023-12-01 05:53:36 25 4
gpt4 key购买 nike

我在将 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?我该怎么做才能克服这个问题?

最佳答案

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

关于python - Heroku错误: Can't find Pywin32==214 on Django App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13410519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com