pyqt4用于heroku部署的正确的whl文件是什么

时间:2019-06-16 17:01:25

标签: python heroku pyqt4

requirements.txt中提到的pyqt4的.whl文件无法安装

我对Flask和Heroku还是陌生的。 我尝试制作一个烧瓶应用程序,它使用pyqt4进行webview。 我希望将应用程序部署在heroku中。 pyqt4已从pip中删除,因为pip现在具有pyqt5,出于某些原因,我无法使代码与pyqt5一起运行,因此我在Requires.txt中包含了pyqt4 .whl的网址。运行命令git push heroku master会给出消息:

remote:        PyQt4-4.11.4-cp37-cp37m-win32.whl is not a supported wheel on this platform.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:

flask应用程序在安装了pyqt4的情况下在本地运行,没有任何错误,因此我认为文件没有问题

文件夹结构: directory structure

requirements.txt:-

aniso8601==7.0.0
appdirs==1.4.3
autopep8==1.4.3
beautifulsoup4==4.7.1
bs4==0.0.1
certifi==2018.11.29
chardet==3.0.4
Click==7.0
cssselect==1.0.3
docutils==0.14
fake-useragent==0.1.11
Flask==1.0.3
Flask-RESTful==0.3.7
future==0.17.1
gunicorn==19.9.0
idna==2.8
itsdangerous==1.1.0
jedi==0.13.2
Jinja2==2.10.1
lxml==4.3.4
MarkupSafe==1.1.1
mccabe==0.6.1
parse==1.12.0
parso==0.3.4
pluggy==0.8.1
pycodestyle==2.5.0
pydocstyle==3.0.0
pyee==6.0.0
pyflakes==2.1.0
Pygments==2.3.1
pypiwin32==223
pyppeteer==0.0.25
PyQt5-sip==4.19.17
pyquery==1.4.0
python-jsonrpc-server==0.1.2
python-language-server==0.23.2
pytz==2019.1
pywin32==224
requests==2.21.0
requests-html==0.10.0
rope==0.12.0
sip==4.19.8
six==1.12.0
snowballstemmer==1.2.1
soupsieve==1.9.1
tqdm==4.32.1
urllib3==1.24.1
w3lib==1.20.0
websockets==7.0
Werkzeug==0.15.4
yapf==0.26.0
https://download.lfd.uci.edu/pythonlibs/t4jqbe6o/PyQt4-4.11.4-cp37-cp37m-win32.whl

我做错什么了吗,如果是的话,将.whl文件包含在requirements.txt中的正确方法是什么?

1 个答案:

答案 0 :(得分:0)

这是问题所在:PyQt4-4.11.4-cp37-cp37m-win32.whl is not a supported wheel on this platform。该滚轮只能在32位Windows系统上使用。如果您在其他系统上运行,则必须使用其他轮子。

相关问题