当前位置:网站首页>PIP configuring domestic sources
PIP configuring domestic sources
2022-07-03 09:26:00 【Song infinite】
Preface
pip By default, they are downloaded from foreign data sources , Therefore, the download speed will be slow , Can't even download . Regarding this , You need a domestic source to download , It's going to be a lot faster .
Common domestic sources
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple
University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
Alibaba cloud http://mirrors.aliyun.com/pypi/simple/
douban http://pypi.douban.com/simple/
Disposable use
pip install -i http://pypi.douban.com/simple/ SomePackage
If you are prompted Distrust Use this :
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com SomePackage
If you need to add parameters later, it's like this :
pip install -i http://e.pypi.python.org --trusted-host e.pypi.python.org --upgrade pip #--upgrade upgrade pip
Permanent settings
Linux
- Build profile
cd ~/.pip #cd To directory
mkdir ~/.pip # If the directory does not exist, use this sentence , After you create it, you can cd To directory .
touch pip.conf # establish pip Configuration file for
sudo vi ~/.pip/pip.conf # Edit the file
- Write the following
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
# above trusted-host Parameter resolution may prompt untrusted problems
- Save and exit , Then use install Domestic sources can be used .
windows
stay C:\Users\ Your username New under the directory pip Folder
In the new pip New under the directory pip.ini ( newly build txt, Change the suffix to ini)
Open and write with Notepad
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = https://pypi.tuna.tsinghua.edu.cn # above trusted-host Parameter resolution may prompt untrusted problemsSave and exit , Then use install Domestic sources can be used .
边栏推荐
- LeetCode每日一题(2305. Fair Distribution of Cookies)
- Simple use of MATLAB
- Temper cattle ranking problem
- Navicat, MySQL export Er graph, er graph
- 图像修复方法研究综述----论文笔记
- WARNING: You are using pip ; however. Later, upgrade PIP failed, modulenotfounderror: no module named 'pip‘
- LeetCode每日一题(1996. The Number of Weak Characters in the Game)
- 2022-2-14 learning xiangniuke project - generate verification code
- IDEA 中使用 Hudi
- Win10 quick screenshot
猜你喜欢

Navicat, MySQL export Er graph, er graph

解决Editor.md上传图片获取不到图片地址问题
![[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords](/img/ee/d982fd9e1f2283e09ad1a81d0b61b5.png)
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords

【Kotlin学习】类、对象和接口——带非默认构造方法或属性的类、数据类和类委托、object关键字

文件系统中的目录与切换操作

2022-2-13 learning the imitation Niuke project - home page of the development community

Go language - JSON processing

【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?

Jenkins learning (II) -- setting up Chinese

Principles of computer composition - cache, connection mapping, learning experience
随机推荐
[point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
LeetCode每日一题(1162. As Far from Land as Possible)
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
Redis learning (I)
Jestson Nano 从tftp服务器下载更新kernel和dtb
Spark structured stream writing Hudi practice
Jenkins learning (I) -- Jenkins installation
On February 14, 2022, learn the imitation Niuke project - develop the registration function
LeetCode每日一题(2109. Adding Spaces to a String)
[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
2022-2-14 learning xiangniuke project - Session Management
Vscode编辑器右键没有Open In Default Browser选项
The less successful implementation and lessons of RESNET
Computing level network notes
LeetCode每日一题(2090. K Radius Subarray Averages)
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
Crawler career from scratch (V): detailed explanation of re regular expression
LeetCode每日一题(516. Longest Palindromic Subsequence)
2022-2-13 learning xiangniuke project - version control