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

[Python handy notes] PIP domestic source installation and jupyter modification of default working path

編輯:Python

pip Install third-party libraries from domestic sources

default pip install Is to use the official source for installation , Because it is abroad , Therefore, when downloading and installing, the installation will usually fail due to access timeout .
Some domestic mirror images :
Alibaba cloud : https://mirrors.aliyun.com/pypi/simple/
University of science and technology of China : https://pypi.mirrors.ustc.edu.cn/simple/
douban (douban): http://pypi.douban.com/simple/
Tsinghua University : https://pypi.tuna.tsinghua.edu.cn/simple/
University of science and technology of China : http://pypi.mirrors.ustc.edu.cn/simple/
For temporary use, you can use the following code :

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple The third-party library you want to install

Permanent way :
Under the user folder C:\User\xxx\ Create a new one pip Folder , Then create a new text , Enter the following code (Windows):

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Jupyter Modify the default working path

course : Click the jump
The second method behind the personal test is effective


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