gpt4 book ai didi

python - pycrypto 挂了?如何安装pycrypto?

转载 作者:太空宇宙 更新时间:2023-11-04 01:41:31 25 4
gpt4 key购买 nike

下面是发生的事情:

$ 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

最佳答案

Softpedia 也有该文件的副本:

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

一旦你有了存档,我相信你应该能够安装它

$ sudo easy_install pycrypto-2.3.tar.gz

(我在我的例子中使用了 pip,所以上面的行没有被确认。)

关于python - pycrypto 挂了?如何安装pycrypto?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4339536/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com