问题描述
我在Windows机器上安装Python软件包时遇到问题,并且想与Christoph Gohlke的Window二进制文件一起安装. (根据我的经验,这减轻了许多其他软件包安装的麻烦).但是,只有.whl文件可用.
I'm having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations). However, only .whl files are available.
http://www.lfd.uci.edu/~gohlke/pythonlibs /#jpype
但是如何安装.whl文件?
But how do I install .whl files?
- I've found documents on wheel, but they don't seem so staightforward in explaining how to install .whl files.
- This question is a duplicate with this question, which wasn't directly answered.
推荐答案
我只使用了以下内容,这很简单.首先打开一个控制台,然后打开cd到您下载文件的位置,例如some-package.whl并使用
I just used the following which was quite simple. First open a console then cd to where you've downloaded your file like some-package.whl and use
pip install some-package.whl
注意:如果无法识别pip.exe,则可以在安装python的脚本"目录中找到它.如果未安装pip,则此页面可以帮助您:如何在Windows上安装pip?
Note: if pip.exe is not recognized, you may find it in the "Scripts" directory from where python has been installed. If pip is not installed, this page can help:How do I install pip on Windows?
注意:为澄清起见
如果将*.whl
文件复制到本地驱动器(例如 C:\ some-dir \ some-file.whl ),请使用以下命令行参数-
Note: for clarification
If you copy the *.whl
file to your local drive (ex. C:\some-dir\some-file.whl) use the following command line parameters --
pip install C:/some-dir/some-file.whl
这篇关于如何安装带有.whl文件的Python软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!