简体   繁体   中英

ImportError: No module named 'cryptography'

I installed python 3.4 on windows 7 and when trying to use paramiko I get this error :

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. Any help ?

It's not pycrypto the package you need in order to import paramiko, try this:

pip install 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. How did you install paramiko? Are you installing manually?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM