当前位置:网站首页>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
边栏推荐
- 5年多工作经验,工资给15k,要是你,你会接受吗?
- What have I learned from 200 machine learning tools?
- AI platform, AI midrange architecture
- The latest second edition of comic novels, listening to books, three in one, complete source code / integrated visa free interface / building tutorials / with acquisition interface
- 向日葵资深产品总监技术分享:“国民远控”如何在AD域环境下应用
- 深入C语言(3)—— C的输入输出流
- Web uploader cannot upload multiple files
- Flutter 启动白屏
- Raft protocol - process demonstration
- Violence recursion to dynamic programming 01 (robot movement)
猜你喜欢

向日葵资深产品总监技术分享:“国民远控”如何在AD域环境下应用

Connect with third-party QQ login

Sleuth+Zipkin 来进行分布式服务链路的追踪

Mathematical modeling -- analytic hierarchy process model
![MOS tube - rapid recovery application notes (II) [parameters and applications]](/img/54/eb040a51304192def8cfb360c7c213.png)
MOS tube - rapid recovery application notes (II) [parameters and applications]

Rdkit I: using rdkit to screen the structural characteristics of chemical small molecules

exness:鸽派决议帮助黄金反弹,焦点转向美国GDP

Inclusion exclusion principle

(nowcoder22529c) diner (inclusion exclusion principle + permutation and combination)

The latest second edition of comic novels, listening to books, three in one, complete source code / integrated visa free interface / building tutorials / with acquisition interface
随机推荐
The difference between /g /m /i of JS regular expressions
Introduction to static routing and dynamic routing protocols OSPF and rip and static routing configuration commands
Why do programmers so "dislike" the trunk development mode?
Swing V2: towards a larger model with larger capacity and higher resolution
安装抓包证书
Flutter 启动白屏
Precautions for using latex
新零售O2O 电商模式解析
Why don't programmers work blindly?
实例搭建Flask服务(简易版)
Asynchronous callback future mode of concurrent mode
RHCE's at, crontab's basic operations, the Chrony service, symmetric encryption and asymmetric encryption
(newcoder 15079)无关(容斥原理)
消费行业数字化升级成 “刚需”,weiit 新零售 SaaS 为企业赋能!
Why is continuous integration and deployment important in development?
Anaconda offline installation environment
Web uploader cannot upload multiple files
3.1 common neural network layer (I) image correlation layer
Overestimated test driven development?
1. Header file - Comment - namespace - standard input / output stream