1、在执行pip3 install tensorflow时出现错误:
ERROR: Exception:
Traceback (most recent call last):
File "/Users/mac/anaconda3/envs/tensorflow/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 360, in _error_catcher
yield
巴拉巴拉...
解决方法:pip --default-timeout=100 install -U tensorflow
(大概是因为网速问题,导致超时间了)
2、在执行上述命令后,出现了新问题...
ERROR: Could not find a version that satisfies the requirement grpcio>=1.8.6 (from tensorflow) (from versions: none)
ERROR: No matching distribution found for grpcio>=1.8.6 (from tensorflow)
解决方案1:
输入:python -m pip install --upgrade pip
解决方案2(分开安装):
输入:pip install protobuf
pip install grpcio-tools
总结:安装不成功的百分之九十的原因都可以归结到渣网速!