使用pip安装tensorflow时,出现错误ERROR: Could not install packages due to an EnvironmentError: HTTPSConnection(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url:…
- 解决方法:
直接下载tensorflow
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-2.0.0-cp35-cp35m-manylinux2010_x86_64.whl
下载之后,输入以下命令
pip3 python3 -m install tensorflow-2.0.0-cp35-cp35m-manylinux2010_x86_64.whl
- 若要安装keras, 则
python3 -m pip install --user -U --pre keras