python安装第三方库tensorflow时出现的问题

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
巴拉巴拉...

1.png

解决方法:pip --default-timeout=100 install -U tensorflow
(大概是因为网速问题,导致超时间了)

2.png

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)

屏幕快照 2019-07-09 10.00.54.png

解决方案1:

输入:python -m pip install --upgrade pip

解决方案2(分开安装):

输入:pip install protobuf

      pip install grpcio-tools

总结:安装不成功的百分之九十的原因都可以归结到渣网速!

你可能感兴趣的:(python安装第三方库tensorflow时出现的问题)