最近刚刚重装了系统,安装了最新版python3.8,遇到了一系列问题,列举出来,以供参考。 (血的教训:强烈建议不要下载最新版本,许多库都没来得及更新呢) 1.
socket.timeout:The read operation timed out
解决方案: 一般是由于网速不稳定,下载过慢,超出默认时间,所以只要修改一下响应时间就好了。 方法如下: windows下输入 pip --default-timeout=100 install 包名 linux下输入 pip --default-timeout=100 install -U 包名
ERROR: Could not find a version that satisfies the requirement ldap3=2.6.1 (from mitmproxy) (from versions: none) ERROR: No matching distribution found for ldap3=2.6.1 (from mitmproxy)
解决方案: 没办法,版本目前还不支持Python3.8版本。只能卸载,重新安装对应低版本的Python。
反正,python3.8还有许许多多多多多的问题,请谨慎下载!!!装个较低版本的完全没问题。