windows下安装.whl报错:xxxx.whl is not a supported wheel on this platform.

OutLine

由于直接 pip install line_profiler 遇到网络问题,无法进行python库的安装;

所以去网上下载了需要的.whl文件进行安装,但pip install xxx.whl 时报错:

ERROR: line_profiler-3.1.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform 

 问题原因

根据报错显示:该包不支持当前系统;

问题应该出在版本上,经查证,是因为.whl文件的版本和当前 python 的版本不匹配导致的;

上面whl文件是3.9版本的(cp39),python是3.7版本,接下来需要统一下版本;

 解决问题

下载对应的3.7版本:

 然后 pip install xxx.whl,成功安装;

原文地址:https://www.cnblogs.com/bigtreei/p/14110551.html