无法找到满足要求的版本pywin32==227 heroku

piok6c0g  于 2022-11-13  发布在  其他
关注(0)|答案(3)|浏览(300)

我有这个问题与heroku。我试图推动我的应用程序到heroku,但似乎heroku不能安装pywin32=227,但我不知道为什么会发生这种情况。我希望有人能帮助我whit这个问题。
Requirements.txt:

appdirs==1.4.3
asgiref==3.2.3
awsebcli==3.17.1
botocore==1.14.17
cement==2.8.2
certifi==2019.11.28
chardet==3.0.4
colorama==0.3.9
distlib==0.3.0
dj-database-url==0.5.0
Django==2.1.15
django-pyodbc-azure==2.1.0.0
docutils==0.15.2
filelock==3.0.12
future==0.16.0
gunicorn==20.0.4
idna==2.7
importlib-metadata==1.5.0
jmespath==0.9.5
pathspec==0.5.9
Pillow==7.0.0
psycopg2==2.8.4
pyodbc==4.0.30
pypiwin32==223
python-dateutil==2.8.0
python-decouple==3.3
pytz==2019.3
pywin32==227
PyYAML==5.2
requests==2.20.1
semantic-version==2.5.0
six==1.11.0
sqlparse==0.3.1
stripe==2.43.0
termcolor==1.1.0
urllib3==1.24.3
virtualenv==20.0.7
wcwidth==0.1.8
whitenoise==5.0.1
zipp==3.1.0

我在Windows 10专业版上进行开发,应用程序在那里运行良好:

C:\Users\GuGarza\test>git push heroku master
Enumerating objects: 363, done.
Counting objects: 100% (363/363), done.
Delta compression using up to 4 threads
Compressing objects: 100% (348/348), done.
Writing objects: 100% (363/363), 257.21 KiB | 1.42 MiB/s, done.
Total 363 (delta 107), reused 0 (delta 0)

remote:          Downloading pytz-2019.3-py2.py3-none-any.whl (509 kB)
remote:        ERROR: Could not find a version that satisfies the requirement pywin32==227 (from -r 
/tmp/build_000de559e8272ea11b28b5ee568bf649/requirements.txt (line 28)) (from versions: none)
remote:        ERROR: No matching distribution found for pywin32==227 (from -r 
/tmp/build_000de559e8272ea11b28b5ee568bf649/requirements.txt (line 28))
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to memotion.
remote:
To https://git.heroku.com/memotion.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/memotion.git'
vfhzx4xs

vfhzx4xs1#

我得到了同样的错误,而部署在Azure应用服务器 flask 应用程序。
requirements.txt中删除/注解掉pywin32==227对我很有效。

z9ju0rcb

z9ju0rcb2#

在这种情况下,条件依赖关系是一个更好的选择。这样你就不会破坏Windows上的东西。
;platform_system == "Windows"添加到仅限Windows的软件包后面

bhmjp9jg

bhmjp9jg3#

我在Pycharm也遇到了同样的问题。
安装新版本或像pypiwin32这样的软件包不起作用,如上所述。从req文件中删除软件包也不起作用。
我复制了我的dev文件,然后删除了这个项目。我建立了一个全新的项目,并将Py文件复制到其中。它工作了。
上述错误消息的原因是:
我尝试用pip安装chart_studio,但没有成功,它只在Conda上运行,这损坏了我的req和我的站点包。

相关问题