2010-06-09 72 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 

当服务恢复正常时摆脱线。

相关问题