问题描述
我已经下载了名为ssh2_python-0.23.0-cp38-cp38-win_amd64.whl
的wheel文件,据我了解,cp38
部分意味着它必须与python 3.8一起安装,而win_amd64
部分意味着其用于具有64位架构的Windows(我拥有)。
但是,如果我尝试使用python -m pip install ssh2_python-0.23.0-cp38-cp38-win_amd64.whl
进行安装,则会收到以下错误消息:
ERROR: ssh2_python-0.23.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
python -V
的输出:Python 3.8.5
我在conda环境中运行命令,这有什么不同吗?
解决方法
ssh2_python-0.23.0-cp38-cp38-win_amd64.whl
是用于64位Python的工具。看来您有32位Python。要么安装64位Python,要么使用32位Wheel。