为什么pycrypto中的模块不能工作?

我使用PIP在Mac Yosemite 10.10.5上安装了pycrypto。 我正在使用Python 2.7.10。

当我尝试运行from Crypto import Cipher等代码时,它会生成以下错误:

ImportError:无法导入名称密码

当我运行PIP SHOW PYCRYPTO时,我得到:

Metadata-Version: 2.0
Name: pycrypto
Version: 2.6.1
Summary: Cryptographic modules for Python.
Home-page: http://www.pycrypto.org/
Author: Dwayne C. Litzenberger
Author-email: dlitz@dlitz.net
License: UNKNOWN
Location: /Library/Python/2.7/site-packages
Requires: 

我的SYS.PATH是:

['','/Library/Python/2.7/site-packages/pip-8.0.2-py2.7.egg','/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip ','/ System / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7','/ System / Library / Frameworks / ','/ System / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / plat-mac','/ System / / plat-mac / lib-scriptpackages','/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python','/System/Library/Frameworks/Python.framework/Versions/2.7/lib /python2.7/lib-tk','/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old','/System/Library/Frameworks/Python.framework/Versions /2.7/lib/python2.7/lib-dynload','/Users/cameronmacintyre/Library/Python/2.7/lib/python/site-packages','/usr/local/lib/python2.7/site-packages ','/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/ PyObjC','/Library/Python/2.7/site-packages']

我似乎也有位于/Library/Developer/CommandLineTools/usr/bin/的命令行工具,包括gcc。

链接地址: http://www.djcxy.com/p/55275.html

上一篇: Why won't modules in pycrypto work?

下一篇: python manage.py runserver No module named django.core.management