Python module ecdsa errors while running paramiko

6.7k Views Asked by At

I am trying to install paramiko module..it fails with the below error

python ./test.py 
Traceback (most recent call last):
  File "./test.py", line 30, in <module>
    import paramiko
  File "/tmp/build-paramiko/paramiko-1.12.0/paramiko/__init__.py", line 64, in <module>
    from transport import SecurityOptions, Transport
  File "/tmp/build-paramiko/paramiko-1.12.0/paramiko/transport.py", line 45, in <module>
    from paramiko.ecdsakey import ECDSAKey
  File "/tmp/build-paramiko/paramiko-1.12.0/paramiko/ecdsakey.py", line 24, in <module>
    from ecdsa import SigningKey, VerifyingKey, der, curves
ImportError: No module named ecdsa

Any suggestions on how to proceed with the paramiko installation ?

3

There are 3 best solutions below

0
On

this:

    from ecdsa import SigningKey, VerifyingKey, der, curves
ImportError: No module named ecdsa

suggests that the python-ecdsa package is missing, you can install it with

pip install ecdsa

Though in general, you shouldn't need to install paramiko from sources. You can install it with

pip install paramiko

that has the benefit of automatically resolving the dependencies of a package

0
On

Download the package from 'https://github.com/warner/python-ecdsa' and install it using command

python setup.py install

Your problem will be solved.

1
On

You can use easy_install to install the lost module "ecdsa" ,which like: easy_install ecdsa, but you have to ready easy_install first!