我正在按照 - http://pytest.org/latest/getting-started.html#installation-issues上的說明操作。如何在Windows上安裝py.test
我已經嘗試了很多選項,也在網上搜索。但我仍然遇到以下錯誤。
Installed c:\python26\lib\site-packages\pytest-2.2.3-py2.6.egg
Processing dependencies for pytest==2.2.3
Searching for py>=1.4.7.dev2
Reading http://pypi.python.org/simple/py/
Download error: [Errno 11001] getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'py' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 11001] getaddrinfo failed -- Some packages may not be found!
No local packages or download links found for py>=1.4.7.dev2
Best match: None
我有Windows XP和Python 2.6。我想在這個設置上安裝py.test。有沒有辦法讓這個工作?
問題出在「getaddrinfo失敗」部分。看到第二個答案在這裏:stackoverflow.com/questions/1290142/python-urllib2-problem – jadkik94