1、报错
在下载第三方库tensorflow的时候,出现错误:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out
2、解决办法
在pycharm的左下角处找到terminal终端,输入指令:
pip --default-timeout=100 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
这条指令可以切换下载源,加速下载速度。
3、最后下载成功