当前位置:网站首页>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 problems
Save and exit , Then use install Domestic sources can be used .
边栏推荐
- Flink学习笔记(十一)Table API 和 SQL
- LeetCode每日一题(1024. Video Stitching)
- 【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
- Flink学习笔记(十)Flink容错机制
- Jenkins learning (I) -- Jenkins installation
- Flink学习笔记(九)状态编程
- 【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
- LeetCode每日一题(1856. Maximum Subarray Min-Product)
- 【Kotlin学习】类、对象和接口——定义类继承结构
- 【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
猜你喜欢
Move anaconda, pycharm and jupyter notebook to mobile hard disk
Windows安装Redis详细步骤
【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展
On February 14, 2022, learn the imitation Niuke project - develop the registration function
Hudi学习笔记(三) 核心概念剖析
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Flink学习笔记(八)多流转换
Flink学习笔记(九)状态编程
MySQL installation and configuration (command line version)
随机推荐
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
Flink学习笔记(十)Flink容错机制
Simple use of MATLAB
Vscode编辑器右键没有Open In Default Browser选项
Hudi 数据管理和存储概述
LeetCode每日一题(1024. Video Stitching)
PowerDesigner does not display table fields, only displays table names and references, which can be modified synchronously
Crawler career from scratch (IV): climb the bullet curtain of station B through API
[untitled] use of cmake
文件系统中的目录与切换操作
Construction of simple database learning environment
About the configuration of vs2008+rade CATIA v5r22
Logstash+jdbc data synchronization +head display problems
【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
【Kotlin学习】类、对象和接口——定义类继承结构
Win10 quick screenshot
Tag paste operator (#)
用Redis实现分布式锁
基于opencv实现桌面图标识别