发生的情况如下:
$ 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
我从中看到解决方案是运行:
sage --pip install pycrypto
然而,当我尝试这样做时,我会得到以下错误:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'S
我尝试通过Buildout (通过easy_install)在Ubuntu实例上安装PyCrypto,但得到以下错误:
Getting distribution for 'pycrypto>=1.9'.
Running easy_install:
/usr/bin/python "-S" "-c" "import sys,os;p = sys.path[:];import site;sys.path[:] = p; [sys.modules.pop(k) for k, v in sys.modules.items() if h
我正在尝试使用的指南在Windows7上安装Python Fabric。
为了安装PyCrypto和Fabric,我按照指南中的建议使用了easy_install,但两者都失败了,返回一个chmod-error:
Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg
Processing dependencies for fabric
Searching for pycrypto>=2.1,!=2.4
Reading http://pypi.python.org/simple/pycrypto/
Readin
我有一个使用Crypto.Hash的脚本,但导入失败时出错:
ImportError: No module named Crypto.Hash
在我的sys.path中,如果我打印sys.path列表,就会有以下条目(除其他外):
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/pycrypto-2.6
如果打开上面的路径,就没有pycrypto-2.6目录。
如何加载pycryp
我使用的是Mac和最新的OS X更新。我试图在终端上安装PyCrypto,但我得到了错误,如下图所示。我使用的命令是sudo pip install pycrypto。你能帮我解决这个问题吗?我该如何解决这个问题?谢谢你的回答。
下面是错误:
macfive:Desktop admin$ sudo pip install pycrypto
The directory '/Users/admin/Library/Caches/pip/http' or its parent directory is not owned by the current user and th
我使用的是Ubuntu 16机器。我想用python 3,我已经安装好了。但是,我必须使用python3命令,否则它将运行python2.7。
我使用pip install pycrypto安装了pycrypto库,但当我尝试使用python3从pycrypto导入时,我收到以下错误:
>>> from Crypto.Cipher import AES
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No modu