计算机安装了Python3.8,安装myqr出错。输入pip install myqr后如下图显示 错在哪里,怎么解决?

前面是这样的:C:\Users\Administrator>pipinstallmyqrCollectingmyqrWARNING:Retrying(Retry(tota... 前面是这样的:C:\Users\Administrator>pip install myqrCollecting myqr WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/myqr/ Downloading https://files.pythonhosted.org/packages/ec/ce/5ff57cde76feaa193978a28097edbb1c649e1f439182649eb9ecc7b86a03/MyQR-2.3.1.zip后面看也还在正常下载:有进度的 过会就是红色的字显示如下了 |█████████████████ | 1.7MB 163bytes/s eta 2:39:47ERROR: Exception:Traceback (most recent call last): File "d:\pyth\lib\site-packages\pip\_vendor\urllib3\response.py", line 397, in _error_catcher yield File "d:\pyth\lib\site-packages\pip\_vendor\urllib3\response.py", line 479, in read data = self._fp.read(amt) File "d:\pyth\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read data = self.__fp.read(amt) File "d:\pyth\lib\http\client.py", line 454, in read n = self.readinto(b) File "d:\pyth\lib\http\client.py", line 498, in readinto n = self.fp.readinto(b) File "d:\pyth\lib\socket.py", line 669, in readinto return self._sock.recv_into(b) File "d:\pyth\lib\ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "d:\pyth\lib\ssl.py", line 1099, in read return self._sslobj.read(len, buffer)socket.timeout: The read operation timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "d:\pyth\lib\site-packages\pip\_internal\cli\base_command.py", line 188,in main status = self.run(options, args) File "d:\pyth\lib\site-packages\pip\_internal\commands\install.py", line 345,in run…………………… 展开
 我来答
匿名用户
2020-03-22
展开全部
看样子是网络的问题哦,建议使用国内的镜像安装,速度很快的哦
匿名用户
2020-03-22
展开全部
更改pip镜像源
追问
谢谢,请问这个怎么更换吗?忘指教。
追答
Windows更改pip镜像源
(1)在windows文件管理器中,输入 %APPDATA%
(2)会定位到一个新的目录下,在该目录下新建pip文件夹,然后到pip文件夹里面去新建个pip.ini文件
(3)在新建的pip.ini文件中输入以下内容
[global]

timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = https://pypi.tuna.tsinghua.edu.cn/simple
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式