Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 755
W4hf Avatar asked Aug 27 '16 11:08

W4hf


2 Answers

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 !

like image 72
W4hf Avatar answered Sep 20 '22 02:09

W4hf


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

pip install paramiko

like image 40
BPL Avatar answered Sep 24 '22 02:09

BPL