requirements.txt中提到的pyqt4的.whl文件安装失败
我对Flask和Heroku都是新手。我试着做了一个flask应用程序,它使用pyqt4的webview。我希望该应用程序部署在heroku。从pip中删除了pyqt4,因为pip现在有了pyqt5,由于某些原因,我无法在pyqt5中运行代码,所以我在requirements.txt中包含了pyqt4 .whl的url。运行命令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
要求.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我做错了什么吗?如果是,那么提前在requirements.txt?Thanks中包含.whl文件的正确方法是什么?
发布于 2019-06-17 06:02:36
这就是问题:PyQt4-4.11.4-cp37-cp37m-win32.whl is not a supported wheel on this platform。此控制盘只能在32位windows系统上使用。如果您在不同的系统上运行,则必须使用不同的轮子。
https://stackoverflow.com/questions/56620920
复制相似问题