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.