18

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 ?

W4hf
  • 715
  • 1
  • 5
  • 12

5 Answers5

26

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 !

W4hf
  • 715
  • 1
  • 5
  • 12
9

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

pip install paramiko

BPL
  • 9,632
  • 9
  • 59
  • 117
  • I did pip install paramiko so I got this error : Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connecion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(10060...))': /simple/cryptography/ Could not find a version that satisfies the requirement cryptography>=1.1 (froparamiko) (from versions: ) o matching distribution found for cryptography>=1.1 (from paramiko) so I installed it manually running the setup.py script – W4hf Aug 27 '16 at 13:43
2

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?

Lie Ryan
  • 62,238
  • 13
  • 100
  • 144
  • I did pip install paramiko so I got this error : Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connecion broken by 'ProtocolError('Connection aborted.', ConnectionRefusedError(10060...))': /simple/cryptography/ Could not find a version that satisfies the requirement cryptography>=1.1 (froparamiko) (from versions: ) o matching distribution found for cryptography>=1.1 (from paramiko) so I installed it manually running the setup.py script – W4hf Aug 27 '16 at 13:22
0

For me I had Amazon Linux 2023.

it has resolved by uninstall aws and awscli using pip.

pip uninstall aws
pip uninstall awscli

This has resolve the issue

pip install awscli 
-1

You need to use

pip install cryptography
pip install paramiko

That's it. Try now.

Anam
  • 1