Objective
Using SSH in Python requires openssh, and OpenSSH relies on the Paramiko module, and the Paramiko module relies on the Pycrypto module, so to use SSH in Python, we need to install the Pycrypto module first. Then install the Paramiko module. The following words do not say much, come together to see the detailed introduction:
Installation method
1 "First make sure that Python is installed and environment variables are set up well. (For Python installation, this article does not repeat.) )
2 "Installation Pycrypto:
To the following site to download the compiled Pycrypto (you can also download Pycrypto, and then compile, but this will be more troublesome, the process is also prone to problems)
Http://www.voidspace.org.uk/python/modules.shtml
After the installation is complete, do the following, without error, the installation is successful, note the case when importing the module, if the first letter written in lowercase, error!!!
3 "Installation Paramiko:
CMD under execution:pip install paramiko
"To install with PIP, you need to install PIP beforehand, and for PIP installation, this article will not repeat." If necessary friends can refer to this article://www.jb51.net/article/107473.htm "
After the installation is complete, the following is done, without error, it indicates the installation was successful:
?
Summarize
The above is the entire content of this article, I hope that the content of this article on everyone's study or work can bring certain help, if there are questions you can message exchange, thank you for the script home support.
Windows Python installs Paramiko modules and Pycrypto modules (three simple steps)