Python - 杂记
安装更新Python解释器
地址:https://www.python.org/downloads
各种版本详解如下:
https://blog.csdn.net/weixin_44198560/article/details/128923318
https://blog.csdn.net/2301_78526307/article/details/132793311
Pycharm控制台输出可以参考如下:
https://blog.csdn.net/hq19940416/article/details/131413076
https://download.csdn.net/blog/column/11787983/124744629
Pip安装镜像源
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/simple/
上海交通大学:https://mirror.sjtu.edu.cn/pypi/web/simple/
豆瓣:http://pypi.douban.com/simple
报错相关
-
error:Cannot run program "D:\P CreateProcess error=193, %1 不是有效的 Win32
-
设置 python SDK。 此 SDK 似乎无效。
这俩个原因都是相应解释器目录下python.exe不能用了,重新拷贝一份过来就行,可以从Python的安装目录拷一份过来,文档参考:
-
Error loading package list:Unexpected end of file from server
删除之前增加的豆瓣的一个源就没啥报错了~
-
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0j 20 Nov 2018
urllib3降版本没啥用会导致另一个报错
pip install urllib3==1.10
放弃了,感觉跟上面更换解释器有关
-
raise ReadTimeoutError(self._pool, None, "Read timed out.")
超时,设置时间看看,没啥问题
--default-timeout=1000