Python paramiko

Installed Paramiko for Python and PyCrypto for Windows 7.

import paramiko ssh = paramiko.SSHClient() 

Tried the above commands, but I keep getting this error. msg:

 AttributeError: 'module' object has no attribute 'SSHClient' 

but this error message disappears if I insert the above commands one line at a time.

Any help?

+4
source share
2 answers

Did you accidentally name your paramiko.py file?

You need to call it something else to avoid getting this error.

+16
source

window:

1. Download PyCrypto: http://www.voidspace.org.uk/python/pycrypto-2.6.1/

2. Install PyCrypto, next and next and next

3.pip install paramiko

0
source

All Articles