简体   繁体   English

ImportError:没有名为'cryptography'的模块

[英]ImportError: No module named 'cryptography'

I installed python 3.4 on windows 7 and when trying to use paramiko I get this error : 我在Windows 7上安装了python 3.4,当我尝试使用paramiko时出现此错误:

import paramiko

File "C:\Python34\lib\site-packages\paramiko-2.0.2-py3.4.egg\paramiko\__init__.py", line 30, in module

File "C:\Python34\lib\site-packages\paramiko-2.0.2-py3.4.egg\paramiko\transport.py", line 32, in module

ImportError: No module named 'cryptography'

I installed pycrypto-2.6.1.win but the problem persist. 我安装了pycrypto-2.6.1.win,但问题仍然存在。 Any help ? 有帮助吗?

It's not pycrypto the package you need in order to import paramiko, try this: 为了导入paramiko,它不是pycrypto你需要的包,试试这个:

pip install paramiko pip安装paramiko

It turned out that it was a proxy problem. 原来,这是一个代理问题。 It was blocking download. 这是阻止下载。 I did 我做到了

pip install cryptography
pip install paramiko

from a direct internet connection and it worked. 从直接的互联网连接,它的工作。 Thanks everyone ! 感谢大家 !

You need to install the cryptography module . 您需要安装加密模块

Normally, dependencies would've automatically got pulled in when you install paramiko using a package manager like pip. 通常,当您使用像pip这样的包管理器安装paramiko时,依赖关系会被自动拉入。 How did you install paramiko? 你是怎么安装paramiko的? Are you installing manually? 你手动安装吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError:没有名为cryptography.fernet的模块 - ImportError: No module named cryptography.fernet ImportError:在Mac上没有名为cryptography.hazmat.backends的模块 - boxsdk - ImportError: No module named cryptography.hazmat.backends - boxsdk on Mac 电报-python-bot ImportError No module named 'cryptography' Alpine Docker - telegram-python-bot ImportError No module named 'cryptography' Alpine Docker ModuleNotFoundError:没有名为“密码学”的模块 - ModuleNotFoundError: No module named 'cryptography' Raspbian Python azure.storage ImportError:没有名为 cryptography.hazmat.primitives.keywrap 的模块 - Raspbian Python azure.storage ImportError: No module named cryptography.hazmat.primitives.keywrap 从cryptography.hazmat.bindings._constant_time导入lib ImportError:没有名为_constant_time的模块 - from cryptography.hazmat.bindings._constant_time import lib ImportError: No module named _constant_time ImportError:没有名为'twisted'的模块 - ImportError: No module named 'twisted' ImportError:没有名为sitemaps的模块 - ImportError: No module named sitemaps ImportError:没有名为“ filebrowser”的模块 - ImportError: No module named 'filebrowser' 导入错误:没有名为 _imagingtk 的模块 - ImportError: No module named _imagingtk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM