“找不到匹配的分布".在PyCharm中的所有pip安装上 [英] "No matching distribution found" on all pip installations in PyCharm
本文介绍了“找不到匹配的分布".在PyCharm中的所有pip安装上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在运行PyCharm Community Edition 2016.1.2和Python 3.4.3的Windows 7上,并且具有以下行为:
I'm on Windows 7 running PyCharm Community Edition 2016.1.2 and Python 3.4.3, and I have the following behavior:
- 在PyCharm中安装新软件包(通过设置->项目解释器)失败,并显示错误消息
No matching distribution found for [package name]
,例如No matching distribution found for numpy
. - 在PyCharm中更新软件包(通过设置->项目解释器")声称成功,并显示
Package successfully installed
通知,但未更改表中的软件包版本(并且实际上未进行更新). - 使用pip在命令行上安装新软件包(例如
pip install numpy
失败,并显示与PyCharm相同的错误消息. - 在命令行上更新软件包后,输出为
Requirement already up-to-date
并且没有更新.
- Installing new packages in PyCharm (from Settings -> Project Interpreter) failed with the error message
No matching distribution found for [package name]
, e.g.No matching distribution found for numpy
. - Updating packages in PyCharm (from Settings -> Project Interpreter) claimed to succeed with a
Package successfully installed
notification, but did not change the package version in the table (and did not actually do the update). - Installing new packages on the command line with pip (e.g.
pip install numpy
failed with the same error message as PyCharm. - Updating packages on the command line gave the output
Requirement already up-to-date
and no update.
什么????
推荐答案
这是pip无法正常连接到互联网时的行为.就我而言,我正在运行Fiddler,因此无法通过Fiddler的代理获得点子.
This is pip's behavior when it can't connect to the internet properly. In my case, I had Fiddler running so pip couldn't get through Fiddler's proxy.
对于其他任何出现这种情况的人:检查您的网络,防火墙,代理等.
To anyone else getting this behavior: check your network, firewalls, proxies, and so on.
这篇关于“找不到匹配的分布".在PyCharm中的所有pip安装上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文