美文网首页
xxx is not a supported wheel on

xxx is not a supported wheel on

作者: pan_peter | 来源:发表于2024-03-25 15:53 被阅读0次

报错

panda-1.5.1-win-amd64.whl is not a supported wheel on this platform

起因

今天在内网部署Flask项目

然后我把项目需要的离线库全部下载后,然后安装

pip download -d e:\aaa h11==0.14.0 idna==3.4 itsdangerous==2.1.2 jinja2==3.1.2 markupsafe==2.1.1 numpy==1.23.4 openpyxl==3.0.10 outcome==1.2.0 pandas==1.5.1 peewee==3.15.4 pysocks==1.7.1 python-dateutil==2.8.2 pytz==2022.6 requests==2.28.1 selenium==4.6.0 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 trio==0.22.0 trio-websocket==0.9.2 urllib3==1.26.12 werkzeug==2.2.2 wsproto==1.2.0

中间的报错

我搞了一个requirements.txt

h11==0.14.0
idna==3.4
itsdangerous==2.1.2
jinja2==3.1.2
markupsafe==2.1.1
numpy==1.23.4
openpyxl==3.0.10
outcome==1.2.0
pandas==1.5.1
peewee==3.15.4
pysocks==1.7.1
python-dateutil==2.8.2
pytz==2022.6
requests==2.28.1
selenium==4.6.0
six==1.16.0
sniffio==1.3.0
sortedcontainers==2.4.0
trio==0.22.0
trio-websocket==0.9.2
urllib3==1.26.12
werkzeug==2.2.2
wsproto==1.2.0

然后用命令,来一键安装

pip install --no-index --find-links=e:\aaa -r path\to\requirements.txt

结果,安装不了,于是我把指定版本号去掉就可以安装了,好烦!我包明明在那里,但是他说找不到,绝了

另外报错

xxx is not a supported wheel on this platform

然后,在安装pandas的时候,就报错这个

原来下载的轮子是:pandas-2.2.1-cp312-cp312-win_amd64.whl

这个cp312——是代表Python3.12的版本,我内网的版本是3.11所以报错

pandas-2.2.1-cp312-cp312-win_amd64.whl is not a supported wheel on this platform

解决方法

我去官网:https://pypi.org/project/tzdata/#files

搜索pandas库,找到适合3.11的,下载后,放到内网安装,就行了!

不过他还需要一个tzdata

总结

搞一个内网部署,都搞半天,真的恼火,唉

222.png

相关文章

网友评论

      本文标题:xxx is not a supported wheel on

      本文链接:https://www.haomeiwen.com/subject/ekadtjtx.html