Python包的本地安装(.whl)报错:.whl is not a supported wheel on this platform

您所在的位置:网站首页 pip安装本地whl包 Python包的本地安装(.whl)报错:.whl is not a supported wheel on this platform

Python包的本地安装(.whl)报错:.whl is not a supported wheel on this platform

2024-07-06 17:11| 来源: 网络整理| 查看: 265

以Pandas为例:

1. 报错:.whl is not a supported wheel on this platform.

2. 报错原因:下载的包与Python版本不相配

3.解决步骤(共4步):

Step1:在cmd输入命令“pip debug --verbose”,查看可支持的版本。

Step2:下载对应版本的安装包(根据👆结果,我应该选择第一个,注意不要选成“pp”的)

*python第三方库下载网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/

*可使用快捷键“Ctrl + F” 快速搜索

Step3:在cmd中通过cd命令,跳转到你安装包下载的位置

例:  我的安装路径是 C:\Users\20982\Downloads,则输入“cd  C:\Users\20982\Downloads”

如果不跳转到安装路径,下一步安装的时候会报错,提示文件不存在。如下:

Step4:输入安装命令“python -m pip install pandas-1.4.3-cp38-cp38-win_amd64.whl”

安装成功啦!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3