程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Installation and uninstallation of PIP in Python basic tutorial

編輯:Python

Catalog

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 freeze

  difference : The second method has no template pip

Four 、 Source change installation

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

summary

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



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved