简体   繁体   English

获取ImportError:安装后没有名为“ Crypto”的模块

[英]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: 尝试:

  • reinstalling pycrypto, 重新安装pycrypto,
  • updating both python and pycrypto 更新python和pycrypto

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.

相关问题 导入错误:没有名为 Crypto 的模块 - ImportError: No module named Crypto ImportError:没有名为“加密”的模块 - ImportError: No module named 'Crypto' Heroku — ImportError:没有名为Crypto的模块 - Heroku — ImportError: No module named Crypto ImportError:在Mac上没有名为“加密”的模块 - ImportError: No module named 'Crypto' on a Mac ImportError:安装软件包后也没有发生名为“ Crypto”的模块 - ImportError: No module named 'Crypto' is occuring after installing packages also 在ERP-Next安装期间获取“ImportError:没有名为wnf的模块” - Getting “ ImportError: No module named wnf ” during ERP-Next installation ImportError:没有名为“ Crypto”的模块,在python中使用AES - ImportError: No module named 'Crypto' , using AES in python 没有名为OpenSSL.crypto和ImportError的模块:SignedJwtAssertionCredentials - No module named OpenSSL.crypto and ImportError: SignedJwtAssertionCredentials 将Jython与Java集成(ImportError:没有名为Crypto的模块) - Integrate Jython with Java (ImportError: No module named Crypto) 安装后,“ImportError:没有名为BeautifulSoup的模块”错误 - “ImportError: No module named BeautifulSoup” error even after installation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM