当前位置:网站首页>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 .
边栏推荐
- [point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
- 【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
- Explanation of the answers to the three questions
- 【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
- Word segmentation in full-text indexing
- 2022-2-14 learning the imitation Niuke project - send email
- Move anaconda, pycharm and jupyter notebook to mobile hard disk
- Logstash+jdbc data synchronization +head display problems
- Spark cluster installation and deployment
- Just graduate student reading thesis
猜你喜欢
![[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions](/img/a3/b442508af9b059d279cffb34dee9bf.png)
[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
![[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals](/img/8d/938e232c1016cabe9ee0f72be87a22.png)
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals

Flink学习笔记(十一)Table API 和 SQL

Idea uses the MVN command to package and report an error, which is not available
![[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds](/img/ee/3286e76797a75c0f999c728fd2b555.png)
[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds

全球KYC服务商ADVANCE.AI 活体检测产品通过ISO国际安全认证 产品能力再上一新台阶

Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)

Run flash demo on ECS

Hudi integrated spark data analysis example (including code flow and test results)

Hudi 快速体验使用(含操作详细步骤及截图)
随机推荐
Flink学习笔记(十)Flink容错机制
Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
Vscode编辑器右键没有Open In Default Browser选项
Crawler career from scratch (IV): climb the bullet curtain of station B through API
Liteide is easy to use
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
Build a solo blog from scratch
Go language - JSON processing
图像修复方法研究综述----论文笔记
Flink学习笔记(九)状态编程
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
STM32F103 can learning record
Solve POM in idea Comment top line problem in XML file
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords
2022-2-14 learning xiangniuke project - Session Management
Utilisation de hudi dans idea
Problems in the implementation of lenet
LeetCode每日一题(1996. The Number of Weak Characters in the Game)