pycrypto下来了吗?如何安装pycrypto?

时间:2010-12-02 20:29:17

标签: python pycrypto

以下是发生的事情:

$ sudo easy_install pycrypto
Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.pycrypto.org/
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Reading http://www.amk.ca/python/code/crypto
Reading http://www.pycrypto.org/
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Reading http://www.pycrypto.org/
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Best match: pycrypto 2.3
Downloading http://www.pycrypto.org/files/pycrypto-2.3.tar.gz
error: Download error for http://www.pycrypto.org/files/pycrypto-2.3.tar.gz: [Errno 101] Network is unreachable

并且firefox无法连接到pycrypto.org - 无法建立连接。所以如果pycrypto关闭,我该如何安装pycrypto?

编辑:我可以但是ping网站,所以我不确定它是如何工作的:

$ ping pycrypto.org
PING pycrypto.org (76.10.145.51) 56(84) bytes of data.
64 bytes from 76-10-145-51.dsl.ncf.ca (76.10.145.51): icmp_seq=1 ttl=53 time=159 ms
64 bytes from 76-10-145-51.dsl.ncf.ca (76.10.145.51): icmp_seq=2 ttl=53 time=161 ms
64 bytes from 76-10-145-51.dsl.ncf.ca (76.10.145.51): icmp_seq=3 ttl=53 time=160 ms
^C
--- pycrypto.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 159.418/160.471/161.223/0.767 ms

3 个答案:

答案 0 :(得分:2)

Softpedia也有该文件的副本:

http://mac.softpedia.com/get/Development/Libraries/PyCrypto.shtml

存档后,我相信您应该可以使用

进行安装
$ sudo easy_install pycrypto-2.3.tar.gz

(我在我的案例中使用pip因此上面的行未得到确认。)

答案 1 :(得分:1)

PyCrypto版本现已上传到PyPI,因此easy_install不再依赖于dlitz.net网络服务器的可用性。

答案 2 :(得分:0)

Google在Fedora's code repository中找到该文件的副本。