当前位置:网站首页>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 .
边栏推荐
- 2022-1-6 Niuke net brush sword finger offer
- Windows安装Redis详细步骤
- Computing level network notes
- Django operates Excel files through openpyxl to import data into the database in batches.
- Database execution error: SQL_ mode only_ full_ group_ by:
- 【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
- [point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds
- LeetCode每日一题(985. Sum of Even Numbers After Queries)
- Idea uses the MVN command to package and report an error, which is not available
- 【Kotlin学习】高阶函数的控制流——lambda的返回语句和匿名函数
猜你喜欢

2022-2-13 learning the imitation Niuke project - home page of the development community
![[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition](/img/94/2ab1feb252dc84c2b4fcad50a0803f.png)
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition

【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定

Redis learning (I)

2022-1-6 Niuke net brush sword finger offer

Vscode编辑器右键没有Open In Default Browser选项

数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展

CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers

2022-2-14 learning the imitation Niuke project - send email

图像修复方法研究综述----论文笔记
随机推荐
LeetCode每日一题(2232. Minimize Result by Adding Parentheses to Expression)
LeetCode每日一题(1162. As Far from Land as Possible)
制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
Construction of simple database learning environment
Hudi integrated spark data analysis example (including code flow and test results)
Flink学习笔记(十)Flink容错机制
Jestson Nano自定义根文件系统创建(支持NVIDIA图形库的最小根文件系统)
Integrated use of interlij idea and sonarqube
Jestson Nano 从tftp服务器下载更新kernel和dtb
The less successful implementation and lessons of RESNET
用Redis实现分布式锁
Jetson Nano 自定义启动图标kernel Logo cboot logo
Install third-party libraries such as Jieba under Anaconda pytorch
Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
Using Hudi in idea
Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)
Powerdesign reverse wizard such as SQL and generates name and comment
Flask+supervisor installation realizes background process resident
Common formulas of probability theory
Apply for domain name binding IP to open port 80 record