ImportError: No module named 'cryptography'

W4hf picture W4hf · Aug 27, 2016 · Viewed 35.8k times · Source

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 ?

Answer

W4hf picture W4hf · Aug 28, 2016

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 !