Installing Paramiko modules and Pycrypto modules under Windows python

Source: Internet
Author: User
This article mainly introduces you through the simple three steps to install the Paramiko module and the Pycrypto module in the Windows Python, the installation of the steps, simple and easy to understand, the need for friends to learn from the next.

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:

Can download Pycrypto, and then compile, but this will be more troublesome, the process is also prone to problems

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!!!

>>> Import crypto #首字母写成小写, error Traceback (most recent):  File "<pyshell#0>", line 1, in <mo dule>  Import Crypto Importerror:no module named Crypto >>> import Crypto >>>

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: Http://www.jb51.net/article/107473.htm "

After the installation is complete, the following is done, without error, it indicates the installation was successful:

>>> Import paramiko>>>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.