1.问题
psutil-5.7.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
2.查找问题
# 进入python,输入以下代码,查看pip支持的类型
import pip._internal
print(pip._internal.pep425tags.get_supported())
# 结果:
[('cp38', 'cp38m', 'win32'), ('cp38', 'none', 'win32'), ('py3', 'none', 'win32'), ('cp38', 'none', 'any'), ('cp3', 'none', 'any'), ('py38', 'none', 'any'), ('py3', 'none', 'any'), ('py37', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'non
e', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
3.解决
修改whl包名为支持的类型,如:
psutil-5.7.0-cp38-none-any.whl
4.再次安装
(venv) D:\project_python\it>pip install psutil-5.7.0-cp38-none-any.whl
Processing d:\project_python\it\psutil-5.7.0-cp38-none-any.whl
Installing collected packages: psutil
Successfully installed psutil-5.7.0