python command line installer
1、Single package installation
But sometimes the installation is very slow, this is because we download from abroad, did not use the domestic mirror download, if you use the domestic mirror download, you can directly from the tortoise speed up to the rocket speed. If you use the domestic mirror download, you can directly from the turtle speed to the rocket speed.
Format of the pip install command: pip install -i [ source_url ] [ package_name ]
source_url: is the software source address
package_name: library or package name
For example, install the pygame command:
pip install -i /simple pygame
Note: Sometimes the specified source does not exist the required software, try to replace the other software source address can be.
Available official sources are available:
Tsinghua: /simple
Douban: /simple/
Ali: /pypi/simple/
Baidu:/pypi/simple
2. Multiple package installation
2.1. Installation
If you need to install multiple packages and you don't want to install them one by one using pip install, you can use a text file to write all the packages you need to install and then use the pip install command to install them.
pip install -r
2.2 Generating documents
If we want to extract all the packages that the currently existing project depends on, we can generate a file using the python command
pip freeze >
file
appdirs==1.4.3 -lru-cache==1.5 beautifulsoup4==4.5.3 bs4==0.0.1 cycler==0.10.0 kiwisolver==1.0.1 lxml==3.7.3 matplotlib==2.2.0 numpy==1.14.1 pandas==0.22.0 pyparsing==2.2.0 python-dateutil==2.6.1 pytz==2018.3 six==1.11.0 virtualenv==15.1.0
to this article on the python command line installer is introduced to this article, more related python command line installer content please search for my previous articles or continue to browse the following related articles I hope you will support me in the future!