我想安装scipy-0.15.1-cp33-none-win_amd64。我已经保存到本地驱动器。我正在使用:

pip 6.0.8 from C:\Python27\Lib\site-packages
python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]

当我跑步时:

pip install scipy-0.15.1-cp33-none-win_amd64.whl

我得到以下错误:

scipy-0.15.1-cp33-none-win_amd64。WHL在这个平台上不是一个有支撑的轮子

有什么问题吗?


当前回答

我也有同样的问题

我从https://pypi.org/project/pip/#files下载了最新的pip

然后……

pip install << downloaded file location >>

然后Pygame和Kivy安装成功了…

其他回答

在TensorFlow配置期间,我指定了Python 3.6。但是默认情况下,我系统上的Python是Python 2.7。因此,在我的例子中,pip意味着2.7的pip。对我来说

pip3 install /tmp/tensorflow_pkg/NAME.whl

成功了。

需要检查的事项:

You are downloading proper version like cp27 (means for Python 2.7) cp36 (means for Python 3.6). Check of which architecture (32 bit or 64 bit) your Python is (you can do it so by opening Python IDLE and typing). import platform platform.architecture() Now download the file of that bit, irrespective of your system architecture. Check whether you're using the correct filename (i.e., it should not be appended with (1) which might happen if you download the file twice) Check if your pip is updated or not. If not, you can use: python -m pip install -upgrade pip

我在IIS上使用Python 3.4部署Flask。

下面的步骤对我很有效:

升级皮普 为NumPy安装wheel文件 PIP安装熊猫

对于我的情况,在我的Python安装(Python 3.6.9)中安装了dlib,我发现将WHL文件名从dlib-19.8.1-cp36-cp36m-win_amd64。WHL到dlib-19.8.1-cp36-none-any。WHL对我有用。

下面是我运行pip install来安装dlib的方法:

pip3 install dlib-19.8.1-cp36-none-any.whl

但是,我仍然想知道是否有任何替代方案,可以在不更改名称的情况下通过pip命令安装WHL文件。

最好检查一下要安装包的Python版本。

如果轮子是为Python 3构建的,而你的Python版本是Python 2。你可能会得到这个错误。

在使用pip安装时,请遵循以下约定:

python2 -m pip install XXXXXX.whl # If the .whl file is for Python 2
python3 -m pip install XXXXXX.whl # If the .whl file is for Python 3