当前位置:网站首页>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 .
边栏推荐
- Word segmentation in full-text indexing
- Detailed steps of windows installation redis
- Hudi 快速体验使用(含操作详细步骤及截图)
- Install database -linux-5.7
- Spark 概述
- Just graduate student reading thesis
- Crawler career from scratch (II): crawl the photos of my little sister ② (the website has been disabled)
- LeetCode每日一题(1996. The Number of Weak Characters in the Game)
- Run flash demo on ECS
- [point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
猜你喜欢

Move anaconda, pycharm and jupyter notebook to mobile hard disk

Vscode编辑器右键没有Open In Default Browser选项
![[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

Hudi学习笔记(三) 核心概念剖析

Go language - JSON processing

Just graduate student reading thesis
![[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

一款开源的Markdown转富文本编辑器的实现原理剖析

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

【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
随机推荐
Word segmentation in full-text indexing
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
Run flash demo on ECS
[point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis
2022-1-6 Niuke net brush sword finger offer
从0开始使用pnpm构建一个Monorepo方式管理的demo
Common formulas of probability theory
2022-2-14 learning xiangniuke project - generate verification code
Jenkins learning (II) -- setting up Chinese
Detailed steps of windows installation redis
2022-2-13 learn the imitation Niuke project - Project debugging skills
Jetson Nano 自定义启动图标kernel Logo cboot logo
Using Hudi in idea
LeetCode每日一题(2305. Fair Distribution of Cookies)
There is no open in default browser option in the right click of the vscade editor
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
Jestson Nano 从tftp服务器下载更新kernel和dtb
[point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
Spark 结构化流写入Hudi 实践
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis