ImportError: no module named paramiko

I installed "python-paramiko" and "python-pycrypto" on Red Hat linux. But still, when I run the sample program, I get "ImportError: There is no module named paramiko".

I checked the installed packages using the command below and received a confirmation.

ncmdvstk:~/pdem $ rpm -qa | grep python-p python-paramiko-1.7.6-1.el3.rf python-pycrypto-2.3-1.el3.pp 

My sample program that gives an import error:

 import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy()) ssh.connect('127.0.0.1', username='admin', password='admin') 
+4
source share
1 answer

In fact, all of these packages were installed outside the python folder. And all I did was bind packages from the python folder to the packages folder.

It worked great.

0
source

All Articles