Python pip install numpy 不起作用:“找不到匹配的发行版”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31932114/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
pip install numpy doesn't work: "No matching distribution found"
提问by verystrongjoe
I am a newbie in Python. I installed Python 2.7.10 and it comes already with pip
. I tried to run this command to download the NumPy library.
我是 Python 的新手。我安装了 Python 2.7.10,它已经带有pip
. 我尝试运行此命令来下载 NumPy 库。
D:\workspace\python>pip install numpy
Collecting numpy
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
But I got this error. How can I solve this?
但我收到了这个错误。我该如何解决这个问题?
I also want to know the difference between easy_install
and pip
.
我也想知道之间的区别easy_install
和pip
。
回答by Mike Driscoll
I recommend just downloading the NumPy installer instead of installing it from source unless you have a specific need for doing so. The Windows installers for NumPy 1.9.2 can be found here:
我建议只下载 NumPy 安装程序,而不是从源代码安装它,除非您有特殊需要这样做。NumPy 1.9.2 的 Windows 安装程序可以在这里找到:
As for the difference between easy_install and pip, easy_install came first. People in the Python community had a difference of opinions and pip was born. Pip is basically just an alternative to easy_install. See the following for a good comparison of the two:
至于easy_install和pip的区别,先说easy_install。Python 社区的人们意见不一,pip 应运而生。Pip 基本上只是 easy_install 的替代品。有关两者的良好比较,请参见以下内容:
回答by Hoang Speed
I encounter the same problem before and doing as below helped me solve it. Hope it will help you.
Just simply run
我之前遇到过同样的问题,下面的操作帮助我解决了它。希望它会帮助你。
只需简单地运行
python pip install numpy --proxy (proxy server):(port number)
python pip install numpy --proxy(代理服务器):(端口号)
回答by Balwinder Singh
Two steps
两步
- install https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
pip install lightfm --upgrade --ignore-installed scipy
- 安装https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
pip install lightfm --upgrade --ignore-installed scipy
回答by Pablo Solano
That happened to me when i tried to install without an internet connection...
当我尝试在没有互联网连接的情况下安装时发生了这种情况......