Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no module named ecdsa with Paramiko

I keep coming up with the error no module named ecdsa when I run a program with Paramiko. I have installed it using pip, and it says that it has installed, but when I run the program again, it comes up with the error again!

What can I do? I'm using Linux, by the way.

like image 943
rtharper Avatar asked Apr 19 '14 22:04

rtharper


2 Answers

Make sure you have ecdsa module installed in your linux system. Go to prompt, and try running the following commands:

    mamun@bobolink:~$ python
    Python 2.7.5+ (default, Feb 27 2014, 19:37:08)
    [GCC 4.8.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from ecdsa import SigningKey
    >>> sk = SigningKey.generate() # uses NIST192p
    >>>

If you get error, then try installing the ecdsa module by the following command:

    mamun@bobolink:~$ sudo pip install ecdsa

And you will get the following output that would confirm that the package has been installed.

    Downloading/unpacking ecdsa
      Downloading ecdsa-0.11.tar.gz (45kB): 45kB downloaded
      Running setup.py egg_info for package ecdsa

    Installing collected packages: ecdsa
      Running setup.py install for ecdsa

    Successfully installed ecdsa
    Cleaning up...
like image 67
Sharif Mamun Avatar answered Oct 04 '22 09:10

Sharif Mamun


If you are on Python 3.x you might have to use pip3 instead of pip:

sudo pip3 install ecdsa
like image 21
Roman Avatar answered Oct 04 '22 10:10

Roman