One 、pip Installation :
Two 、pip The uninstall :
3、 ... and 、 List installed versions
1、pip list
2、pip freeze
Four 、 Source change installation
summary
One 、pip Installation :win+R Show me the interface
Then input cmd Click ok , The following screen appears , Can be downloaded
Here are two ways to download
1、 General installation :pip install Template name
2、 Specify version installation :pip install Template name == edition
Two 、pip The uninstall :pip uninstall Template name
This interface appears , Input y Are you sure to uninstall , Input n Cancel uninstall
appear Successfully That is, the uninstallation is successful
3、 ... and 、 List installed versions 1、pip list 2、pip freezedifference : The second method has no template pip
Four 、 Source change installation1、 Temporary source change :pip install requests -I https://pypi.tuna.tsinghua.edu.cn/simple
2、 Permanent source change
(1)、 Click on this computer , Enter... In the top folder window :%APPDATA%
(2)、 Press enter to jump to the following directory , newly build pip Folder
(3)、 establish pip.ini file ( Pay attention to the extension name )
(4)、 Open the file and enter the following , Can be closed
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
Website replaceable , This is what I often use , For reference only !
I hope my method can help you , To rush !
summaryThis is about Python Basic course pip This is the end of the article on installing and uninstalling , More about Python pip Please search the previous articles of SDN or continue to browse the related articles below. I hope you can support SDN more in the future !