pip更新超时失败之解法
生活随笔
收集整理的這篇文章主要介紹了
pip更新超时失败之解法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
python卡在pip安裝包上了,我用的是pycharm,在它的交互命令行里使用
python -m pip install --upgrade pip 始終報錯! Traceback (most recent call last):File "d:\soft\python3.7\lib\site-packages\pip\_vendor\urllib3\response.py", line 331, in _error_catcheryieldFile "d:\soft\python3.7\lib\site-packages\pip\_vendor\urllib3\response.py", line 413, in readdata = self._fp.read(amt)File "d:\soft\python3.7\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in readdata = self.__fp.read(amt)File "d:\soft\python3.7\lib\http\client.py", line 447, in readn = self.readinto(b)File "d:\soft\python3.7\lib\http\client.py", line 491, in readinton = self.fp.readinto(b)File "d:\soft\python3.7\lib\socket.py", line 589, in readintoreturn self._sock.recv_into(b)File "d:\soft\python3.7\lib\ssl.py", line 1052, in recv_intoreturn self.read(nbytes, buffer)File "d:\soft\python3.7\lib\ssl.py", line 911, in readreturn self._sslobj.read(len, buffer) socket.timeout: The read operation timed out從錯誤上分析顯然是下載超時了,那么怎么解決呢?肯定去找國內的鏡像資源啊!于是我網上搜索了一番,終于找到了一個好用的:
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
————————————————
原文鏈接:https://blog.csdn.net/xqnode/article/details/88431139
總結
以上是生活随笔為你收集整理的pip更新超时失败之解法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是Web2.0(图解Web2.0)
- 下一篇: 牛客刷题记录之语法入门选择结构篇