Third-party package installation method for python learning (two methods)

Source: Internet
Author: User
This article mainly introduces how to install a third-party package in python. Recently, I have been studying the simulated logon of QQ space and weibo (crawler), all of which involve the RSA algorithm. This requires the next RSA package (a third-party package). I searched a lot of information on the Internet and summarized it here. if you need a friend, I can refer to this article to introduce the third-party package installation method for python learning, recently, I have been studying QQ space and weibo (crawler) simulated logon, all of which involve the RSA algorithm. This requires the next RSA package (a third-party package). I found a lot of information on the internet. There are two methods:

Method 1 (pip or easy_install is not used ):

Step 1: find the required package on the internet and download it. Eg rsa-3.1.4.tar.gz

Step 2: decompress the file.

Step 3: switch the command line tool cd to the Directory of the package to be installed, find the setup. py file, and enter python setup. py install

Method 2 (using pip or easy_install ):

Open cmd directly and tap pip install rsa.

The main requirement is that the above two methods of third-party package installation can directly go to cmd, not the python shell, and do not need to enter python in cmd.

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.