当前位置:网站首页>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 .
边栏推荐
- Word segmentation in full-text indexing
- Spark overview
- Construction of simple database learning environment
- Internet Protocol learning record
- Windows安装Redis详细步骤
- 2022-2-14 learning the imitation Niuke project - send email
- [point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
- Jenkins learning (II) -- setting up Chinese
- ERROR: certificate common name “www.mysql.com” doesn’t match requested host name “137.254.60.11”.
- 【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
猜你喜欢
Hudi学习笔记(三) 核心概念剖析
Build a solo blog from scratch
Solve POM in idea Comment top line problem in XML file
Crawler career from scratch (II): crawl the photos of my little sister ② (the website has been disabled)
2022-2-13 learning the imitation Niuke project - home page of the development community
数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
Jenkins learning (III) -- setting scheduled tasks
【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
About the configuration of vs2008+rade CATIA v5r22
随机推荐
【Kotlin学习】类、对象和接口——定义类继承结构
[advanced feature learning on point clouds using multi resolution features and learning]
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
Navicat, MySQL export Er graph, er graph
Overview of database system
Alibaba cloud notes for the first time
Spark cluster installation and deployment
LeetCode每日一题(931. Minimum Falling Path Sum)
Using Hudi in idea
Banner - Summary of closed group meeting
Word segmentation in full-text indexing
Basic knowledge of database design
NPM install installation dependency package error reporting solution
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
LeetCode每日一题(2090. K Radius Subarray Averages)
解决Editor.md上传图片获取不到图片地址问题
[set theory] order relation (chain | anti chain | chain and anti chain example | chain and anti chain theorem | chain and anti chain inference | good order relation)
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords
LeetCode每日一题(985. Sum of Even Numbers After Queries)