[英]Getting ImportError: No module named 'Crypto' after installation
I am getting ImportError: No module named 'Crypto'
error when trying to run. 我收到
ImportError: No module named 'Crypto'
尝试运行时ImportError: No module named 'Crypto'
错误。 I have installed pycrypto using pip install pycrypto
and updated it also. 我已经使用
pip install pycrypto
并也pip install pycrypto
进行了更新。 Everything I have tried to far has been unsuccessful. 我到目前为止尝试的所有操作均未成功。
Tried: 尝试:
Any suggestions? 有什么建议么?
Is python defined properly on your machine? python是否在您的计算机上正确定义? Make sure PATH environment variable has python's installation folder in it
确保PATH环境变量中具有python的安装文件夹
The error messages says, it does not able to find the module so please try to run below command, 错误消息指出,它找不到模块,因此请尝试在以下命令中运行,
#pip list -- # what does it show to you, if it would have installed successfully it will show you up there.
if "pip install pycrypto" doesn't work so try to download the source tar ball and try to install it from prompt. 如果“ pip install pycrypto”不起作用,请尝试下载源tar球并尝试从提示符下安装它。
pip download pycrypto
it will download tar.gz file.. so you can install using with pip install --no-index --find-links /path/to/some/dir/ pycrypto
它将下载tar.gz文件。.因此您可以使用
pip install --no-index --find-links /path/to/some/dir/ pycrypto
for python3.5 version 对于python3.5版本
python3.5 -m pip install pycrypto
this will install in python3.5 environment and after that you can able to import pycrypto module 这将安装在python3.5环境中,之后您可以导入pycrypto模块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.