pip install numpy不工作:“找不到匹配的分发”

2024-04-23 15:38:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我是学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

但我犯了个错误。我该怎么解决?

我还想知道easy_installpip之间的区别。


Tags: installpip命令numpythatversionnotfind
3条回答

两步

  1. 安装https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
  2. pip install lightfm --upgrade --ignore-installed scipy

我以前遇到过同样的问题,下面的操作帮助我解决了这个问题。希望它能帮助你。
只需运行

python pip install numpy --proxy (proxy server):(port number)

我建议您只下载NumPy安装程序,而不是从源代码安装,除非您有特殊需要。适用于NumPy 1.9.2的Windows安装程序可以在以下位置找到:

至于easy_install和pip的区别,easy_install是第一位的。Python社区的人有不同的意见,pip诞生了。Pip基本上只是简单安装的替代品。关于两者的良好比较,请参见以下内容:

相关问题 更多 >