本文介绍了点子无法访问网站,全新安装了Python 2.7.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚全新安装了Python 2.7.9以获取pip(无法通过其他方式获得它),现在当我使用它进行安装时,出现此错误:
I just did a fresh/clean install of Python 2.7.9 to get pip (couldn't get it any other way) and now when I go to install something using it I get this error:
pip install openpyxl
Downloading/unpacking openpyxl
Cannot fetch index base URL https://pypi.python.org/simple
Could not find any downloads that satisfy the requirement openpyxl
Cleaning up...
No distributions at all found for openpyxl
Storing debug log for failure in C:\Users\name\pip\pip.log
错误日志看起来很相似,只是消息超时,没有更多信息:
The error log looks similar, just many time out messages with no more information:
Downloading/unpacking openpyxl
Getting page https://pypi.python.org/simple/openpyxl/
Could not fetch URL https://pypi.python.org/simple/openpyxl/: timed out
Will skip URL https://pypi.python.org/simple/openpyxl/ when looking for download links for openpyxl
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: timed out
Will skip URL https://pypi.python.org/simple/ when looking for download links for openpyxl
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for openpyxl:
* https://pypi.python.org/simple/openpyxl/
Getting page https://pypi.python.org/simple/openpyxl/
Could not fetch URL https://pypi.python.org/simple/openpyxl/: timed out
Will skip URL https://pypi.python.org/simple/openpyxl/ when looking for download links for openpyxl
Could not find any downloads that satisfy the requirement openpyxl
Cleaning up...
Removing temporary dir c:\users\dqa8300\appdata\local\temp\pip_build_DQA8300...
No distributions at all found for openpyxl
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip\req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\Python27\lib\site-packages\pip\index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for openpyxl
我假设这是网络问题,有什么解决方法吗?
I'm assuming that this is a network thing, is there any work around?
推荐答案
似乎是网络问题.
如果您可以打开 https://pypi.python.org/simple/openpyxl/在您的浏览器中,则可能是其他问题.
If you can open https://pypi.python.org/simple/openpyxl/ in your browser, then it may be some other issue.
这篇关于点子无法访问网站,全新安装了Python 2.7.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!