当前位置:网站首页>Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
2022-07-29 03:42:00 【Chen Fuguo】
In the installation flask When installing some packages in the virtual environment of , Prompt some information that the version does not conform , This is because of the current pip Lower version , But the version of the package that needs to be installed is too high , Led to pip Can't install ,
Pictured :
At this point, we can use upgrade pip Version order of , stay cmd In command , Enter the corresponding virtual environment directory , Enter upgrade pip Order :
python -m pip install --upgrade pip
Under normal circumstances , After this operation , Just install it again , however , It's easy for us to have some problems in the installation , In the process of downloading and installing , Very slow , After downloading a part , Display error :
Error reporting in the above figure , In fact, the download time is too long , Connection timeout . Because of the pip The download website is extranet , We download slowly , Cause connection timeout , At this point, we can download , Designate some domestic pip Source for download :
Alibaba cloud http://mirrors.aliyun.com/pypi/simple/
University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
douban (douban) http://pypi.douban.com/simple/
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
University of science and technology of China http://pypi.mirrors.ustc.edu.cn/simple/
So with these websites , How about using it ?
Here, take watercress as an example :
upgrade pip:
python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Download package : With flask-sqlalchemy For example :
pip install flask-sqlalchemy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Download package : With pymysql For example :
pip install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
summary :
We just need to change the name of the installed package in the code , Like this code : pip install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com, We just need to pymysql Change to the package we need
In this way, we can pass the domestic pip Source , Download the packages we need quickly
边栏推荐
- With more than 5 years of work experience and a salary of 15K, would you accept it if you were me?
- KNN method predicts pregnancy, KNN principle simple code
- Set functions in kotlin
- 2. 变量及作用域
- 深入C语言(1)——操作符与表达式
- RTP 发送 和接收 h265
- RTP send and receive h265
- Microcomputer principle operation
- RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密
- [technology 1]
猜你喜欢

Android view system and custom view Series 1: (kotlin version)

最新二开版漫画小说听书三合一完整源码/整合免签接口/搭建教程/带采集接口

(2022杭电多校三)1011-Link is as bear(思维+线性基)

(newcoder 15079)无关(容斥原理)

Malloc C language

Asynchronous callback future mode of concurrent mode

@Configuration (proxybeanmethods = false) what's the use of setting this to false

Idea configuration web container and war packaging

Why does the 20 bit address bus determine the storage space of 1MB

Sleuth+Zipkin 来进行分布式服务链路的追踪
随机推荐
1.5 nn. Module neural network (III)
Li Kou daily question - day 44 -205. Isomorphic string
RHCE's at, crontab's basic operations, the Chrony service, symmetric encryption and asymmetric encryption
Idea configuration web container and war packaging
Why do programmers so "dislike" the trunk development mode?
Code speed optimization
容斥原理
深入C语言(1)——操作符与表达式
Sleuth+Zipkin 来进行分布式服务链路的追踪
2 neural network toolbox NN
HDU多校第二场 1011 DOS Card
(2022 Hangdian multi school III) 1011 link is as bear (thinking + linear basis)
数字孪生实际应用案例-智慧能源篇
1. Mx6u driver development-2-led driver
Microcomputer principle operation
How to understand clock cycle and formula CPU execution time = number of CPU clock cycles / dominant frequency
(2022杭电多校三)1011-Link is as bear(思维+线性基)
Set functions in kotlin
Pp-yoloe details
ROS - create workspace