有空就在这里记,慢慢搬过来吧
目录
一、安装相关
1.安装库相关
错误相关
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
遇到超时什么的失败问题,用这句很有用
一是--default-timeout=100是设置了延时的时间,超时之后就不会直接报错了,还会等待一会。
二是换了豆瓣源
pip --default-timeout=100 install tensorflow==2.0.0 -i https://pypi.douban.com/simple
安装docx时报错
换源最有效
pip install python-docx -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com