2010-06-09 94 views
1

我有一個Kubuntu 10.04 VM映像,並試圖按照The Linux Installation Wiki安裝ReviewBoard。當我到達步驟easy_install評論板,我遇到了一個問題,我找不到解決方案。以下是控制檯輸出:easy_install ReviewBoard [Errno 104]通過對等方重置連接

>> sudo easy_install ReviewBoard 
Searching for ReviewBoard 
Best match: ReviewBoard 1.0.8 
Processing ReviewBoard-1.0.8-py2.6.egg 
ReviewBoard 1.0.8 is already the active version in easy-install.pth 
Installing rb-site script to /usr/local/bin 

Using /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0.8-py2.6.egg 
Processing dependencies for ReviewBoard 
Searching for pytz 
Reading http://downloads.reviewboard.org/mirror/ 
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found! 
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.0/ 
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found! 
Reading http://pypi.python.org/simple/pytz/ 
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found! 
Reading http://pypi.python.org/simple/pytz/ 
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found! 
Couldn't find index page for 'pytz' (maybe misspelled?) 
Scanning index of all packages (this may take a while) 
Reading http://pypi.python.org/simple/ 
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found! 
No local packages or download links found for pytz 
error: Could not find suitable distribution for Requirement.parse('pytz') 

我是新來的蟒蛇,但它似乎是easy_install的不能上一個版本pytz的決定。我已閱讀

而且好像這些文章中描述更多的是與發展比我的問題的問題,但我可能是錯的。

有沒有人遇到過這樣的問題?如果有任何缺失的信息可幫助解決此問題,請告訴我。

@Ben Hoffstein

 
Settings for eth0: 
     Supported ports: [ TP ] 
     Supported link modes: 10baseT/Half 10baseT/Full 
           100baseT/Half 100baseT/Full 
           1000baseT/Full 
     Supports auto-negotiation: Yes 
     Advertised link modes: 10baseT/Half 10baseT/Full 
           100baseT/Half 100baseT/Full 
           1000baseT/Full 
     Advertised pause frame use: No 
     Advertised auto-negotiation: Yes 
     Link partner advertised link modes: Not reported 
     Link partner advertised pause frame use: No 
     Link partner advertised auto-negotiation: No 
     Speed: 1000Mb/s 
     Duplex: Full 
     Port: Twisted Pair 
     PHYAD: 0 
     Transceiver: internal 
     Auto-negotiation: on 
     MDI-X: Unknown 
     Supports Wake-on: d 
     Wake-on: d 
     Current message level: 0x00000007 (7) 
     Link detected: yes 

編輯: 我不知道這是否會更加有用的信息,但我嘗試安裝了Trac系統的gitplugin和我收到了同樣的問題。所以,它看起來可能是easy_install的問題。

 
>> sudo easy_install http://trac-hacks.org/svn/gitplugin/0.11 
Downloading http://trac-hacks.org/svn/gitplugin/0.11 
error: Download error for http://trac-hacks.org/svn/gitplugin/0.11: [Errno 104] Connection reset by peer 

回答

2

這可能是在PyPI主機暫時性的問題,再試一次:easy_install pytz

+1

我得到相同的錯誤輸出。 – blastthisinferno 2010-06-09 15:04:57

+1

你可以在pypi.python.org上進行ping嗎? – Tarantula 2010-06-09 17:03:36

+1

是的。成功。 – blastthisinferno 2010-06-09 18:31:31

0

像@Tarantula說,這是一個臨時的PyPI服務的問題,我昨天同樣的打擊。我試圖ping pypi.python.org(或或host)幾次,發現有2臺服務器返回的DNS服務器。這是因爲pypi服務器之一不斷拋出這個錯誤的一個python包請求。

所以我硬編碼映射pypi.python.org/etc/hosts好的基本強制pypi.python.org解決我想要的服務器,它減輕了我的痛苦。當然,如果我們無法控制外部服務,這是一個臨時的解決方法。

# add a line to /etc/hosts 
151.101.200.223 pypi.python.org 

當服務恢復正常時擺脫線。

相關問題