尽管适用于python3.8,但无法使用python 3.8安装ssh2-python wheel文件

问题描述

我已经下载了名为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。