pip安装tensorflow报错:could not find a version that satisfies the requirement grpcio>=1.8.6

(venv) D:\python_work>pip install tensorflow
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=44
3): Read timed out. (read timeout=15)")': /simple/tensorflow/
Collecting tensorflowUsing cached tensorflow-2.3.0-cp38-cp38-win_amd64.whl (342.5 MB)
Collecting absl-py>=0.7.0Using cached absl_py-0.10.0-py3-none-any.whl (127 kB)
Collecting wrapt>=1.11.1Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting numpy<1.19.0,>=1.16.0Using cached numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB)
Collecting gast==0.3.3Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Requirement already satisfied: six>=1.12.0 in d:\python_work\venv\lib\site-packages (from tensorflow) (1.15.0)
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)

出错原因:grpcio的版本不够新
在pycharm的命令框Terminal更新grpcio:pip install --upgrade grpcio
再在命令框中使用pip install tensorflow安装tensorflow

又出现ERROR: Could not find a version that satisfies the requirement google-auth<2,>=1.6.3 (from tensorboard<3,>=2.3.0->tensorflow) (from versions: none) ERROR: No matching distribution found for google-auth<2,>=1.6.3 (from tensorboard<3,>=2.3.0->tensorflow)

(venv) D:\python_work>pip install tensorflow
Collecting tensorflowUsing cached tensorflow-2.3.0-cp38-cp38-win_amd64.whl (342.5 MB)
Collecting scipy==1.4.1Using cached scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
Collecting tensorboard<3,>=2.3.0Using cached tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
Collecting h5py<2.11.0,>=2.10.0Using cached h5py-2.10.0-cp38-cp38-win_amd64.whl (2.5 MB)
Collecting opt-einsum>=2.3.2Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting wrapt>=1.11.1Using cached wrapt-1.12.1.tar.gz (27 kB)
Requirement already satisfied: protobuf>=3.9.2 in d:\python_work\venv\lib\site-packages (from tensorflow) (3.13.0)
Collecting keras-preprocessing<1.2,>=1.1.1Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting astunparse==1.6.3Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting tensorflow-estimator<2.4.0,>=2.3.0Using cached tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
Collecting gast==0.3.3Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting termcolor>=1.1.0Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting wheel>=0.26Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Requirement already satisfied: grpcio>=1.8.6 in d:\python_work\venv\lib\site-packages (from tensorflow) (1.32.0)
Collecting absl-py>=0.7.0Using cached absl_py-0.10.0-py3-none-any.whl (127 kB)
Collecting numpy<1.19.0,>=1.16.0Using cached numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB)
Requirement already satisfied: six>=1.12.0 in d:\python_work\venv\lib\site-packages (from tensorflow) (1.15.0)
Collecting google-pasta>=0.1.8Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting markdown>=2.6.8Downloading Markdown-3.2.2-py3-none-any.whl (88 kB)|████████████████████████████████| 88 kB 269 kB/s
Collecting tensorboard-plugin-wit>=1.6.0Downloading tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)|████████████████████████████████| 779 kB 930 kB/s
ERROR: Could not find a version that satisfies the requirement google-auth<2,>=1.6.3 (from tensorboard<3,>=2.3.0->tensorflow) (from versions: none)
ERROR: No matching distribution found for google-auth<2,>=1.6.3 (from tensorboard<3,>=2.3.0->tensorflow)

出错原因:google-auth版本不够新
在pycharm的命令框更新grpcio:pip install --upgrade google-auth

Collecting google-authDownloading google_auth-1.21.1-py2.py3-none-any.whl (93 kB)|████████████████████████████████| 93 kB 344 kB/s
Collecting cachetools<5.0,>=2.0.0Downloading cachetools-4.1.1-py3-none-any.whl (10 kB)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in d:\python_work\venv\lib\site-packages (from google-auth) (1.15.0)
Collecting pyasn1-modules>=0.2.1Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)|████████████████████████████████| 155 kB 819 kB/s
Requirement already satisfied, skipping upgrade: setuptools>=40.3.0 in d:\python_work\venv\lib\site-packages (from google-auth) (50.3.0)
Collecting rsa<5,>=3.1.4; python_version >= "3.5"Downloading rsa-4.6-py3-none-any.whl (47 kB)|████████████████████████████████| 47 kB 2.0 MB/s
Collecting pyasn1<0.5.0,>=0.4.6Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)|████████████████████████████████| 77 kB 2.9 MB/s
Installing collected packages: cachetools, pyasn1, pyasn1-modules, rsa, google-auth
Successfully installed cachetools-4.1.1 google-auth-1.21.1 pyasn1-0.4.8 pyasn1-modules-0.2.8 rsa-4.6

再在命令框中使用pip install tensorflow安装tensorflow

(venv) D:\python_work>pip install tensorflow
Collecting tensorflowUsing cached tensorflow-2.3.0-cp38-cp38-win_amd64.whl (342.5 MB)
Collecting absl-py>=0.7.0Using cached absl_py-0.10.0-py3-none-any.whl (127 kB)
Collecting tensorboard<3,>=2.3.0Using cached tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
Collecting tensorflow-estimator<2.4.0,>=2.3.0Using cached tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
Requirement already satisfied: protobuf>=3.9.2 in d:\python_work\venv\lib\site-packages (from tensorflow) (3.13.0)
Collecting opt-einsum>=2.3.2Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting wheel>=0.26Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Requirement already satisfied: six>=1.12.0 in d:\python_work\venv\lib\site-packages (from tensorflow) (1.15.0)
Collecting numpy<1.19.0,>=1.16.0Using cached numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB)
Requirement already satisfied: grpcio>=1.8.6 in d:\python_work\venv\lib\site-packages (from tensorflow) (1.32.0)
Collecting astunparse==1.6.3Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting gast==0.3.3Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting termcolor>=1.1.0Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Collecting keras-preprocessing<1.2,>=1.1.1Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting scipy==1.4.1Using cached scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
Collecting h5py<2.11.0,>=2.10.0Using cached h5py-2.10.0-cp38-cp38-win_amd64.whl (2.5 MB)
Collecting wrapt>=1.11.1Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting google-pasta>=0.1.8Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Requirement already satisfied: setuptools>=41.0.0 in d:\python_work\venv\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (50.3.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in d:\python_work\venv\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.21.1)
Collecting markdown>=2.6.8Using cached Markdown-3.2.2-py3-none-any.whl (88 kB)
Requirement already satisfied: requests<3,>=2.21.0 in d:\python_work\venv\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (2.24.0)
Requirement already satisfied: werkzeug>=0.11.15 in d:\python_work\venv\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow) (1.0.1)
Collecting tensorboard-plugin-wit>=1.6.0Using cached tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1Downloading google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.5" in d:\python_work\venv\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.
6)
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\python_work\venv\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in d:\python_work\venv\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow) (4.1.1)
Requirement already satisfied: certifi>=2017.4.17 in d:\python_work\venv\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in d:\python_work\venv\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in d:\python_work\venv\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in d:\python_work\venv\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (1.2
5.10)
Collecting requests-oauthlib>=0.7.0Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: pyasn1>=0.1.3 in d:\python_work\venv\lib\site-packages (from rsa<5,>=3.1.4; python_version >= "3.5"->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->
tensorflow) (0.4.8)
Collecting oauthlib>=3.0.0Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)|████████████████████████████████| 147 kB 726 kB/s
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Using legacy 'setup.py install' for wrapt, since package 'wheel' is not installed.
Installing collected packages: absl-py, markdown, wheel, tensorboard-plugin-wit, oauthlib, requests-oauthlib, google-auth-oauthlib, numpy, tensorboard, tensorflow-estimator, opt-
einsum, astunparse, gast, termcolor, keras-preprocessing, scipy, h5py, wrapt, google-pasta, tensorflowAttempting uninstall: numpyFound existing installation: numpy 1.19.2Uninstalling numpy-1.19.2:Successfully uninstalled numpy-1.19.2Running setup.py install for termcolor ... doneAttempting uninstall: scipyFound existing installation: scipy 1.5.2Uninstalling scipy-1.5.2:Successfully uninstalled scipy-1.5.2Running setup.py install for wrapt ... done
Successfully installed absl-py-0.10.0 astunparse-1.6.3 gast-0.3.3 google-auth-oauthlib-0.4.1 google-pasta-0.2.0 h5py-2.10.0 keras-preprocessing-1.1.2 markdown-3.2.2 numpy-1.18.5
oauthlib-3.1.0 opt-einsum-3.3.0 requests-oauthlib-1.3.0 scipy-1.4.1 tensorboard-2.3.0 tensorboard-plugin-wit-1.7.0 tensorflow-2.3.0 tensorflow-estimator-2.3.0 termcolor-1.1.0 whe
el-0.35.1 wrapt-1.12.1

安装成功

pip安装tensorflow报错:could not find a version that satisfies the requirement grpcio>=1.8.6相关推荐

  1. pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)

    使用python自带的pip安装包时,可能会报以下错误: ERROR: Could not find a version that satisfies the requirement pymysql ...

  2. 用pip安装tensorflow报错SyntaxError: invalid syntax

    用pip安装tensorflow报错SyntaxError: invalid syntax 解决办法:直接在cmd中输入安装语句

  3. pip/pip3 install 报错 “Could not find a version that satisfies the requriement xxx” 的解决方法

    一.问题描述 pip/pip3 install 报错 "Could not find a version that satisfies the requriement xxx",如 ...

  4. pip安装tensorflow报错:could not find a version that satisfies the requirement grpcio=1.8.6

    下图红色字体为错误提示: - ERROR: Could not find a version that satisfies the requirement grpcio>=1.8.6 (from ...

  5. pip安装torch错误ERROR: Could not find a version that satisfies the requirement torch及解决办法

    使用pip安装PyTorch时报如下错误: ERROR: Could not find a version that satisfies the requirement torch>=1.6.0 ...

  6. python3 pip3 安装包报错 Could not find a version that satisfies the requirement 解决方法

    现象: [root@e45b79f0cd70 Python-3.9.0]# pip3 install pycryptodome Looking in indexes: https://pypi.dou ...

  7. Python在使用pip安装某个库时报错 Could not find a version that satisfies the requirement numpy

    问题描述:Python中在使用pip的下述命令安装第三方库numpy pip install -U numpy -i http://mirrors.aliyun.com/pypi/simple 出现警 ...

  8. anconda安装后命令行中安装tensorflow报错

    现象  anconda安装后命令行中安装tensorflow报错 pip install --upgrade --ignore-installed tensorflow-gpu Building wh ...

  9. Ubuntu安装tensorflow报错:tensorflow-xx.whl not a supported wheel on this platform

    解决Ubuntu安装tensorflow报错:tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this ...

最新文章

  1. Eclipse Color Themes
  2. Hibernate总结(二)
  3. 关于分组序号在MySQL中的实现
  4. HttpServletRequest看这篇文章就够了
  5. mysql+create+table+index_mysql------基础及常见SQL技巧
  6. java8 filter return_java8新特性Java 8 Streams filter示例 - Java教程
  7. postman raw带文件_postman raw模拟各种http post请求
  8. jquery将表单序列化json对象
  9. “不懂 CPU 工作原理又如何,直接用代码模拟一个!”
  10. 摆花(2012Noip普及组第3题)
  11. 查询很慢会导致锁表吗_MySQL的insert into select 引发锁表
  12. web安全day9:5个实验实实在在学习windows域部署
  13. 群晖服务器自动同步到本地电脑,安装群晖Drive,实现多台电脑文件同步
  14. uygurqa输入法android,uygurqa维语输入法2021
  15. 机器学习中的数学——激活函数(六):Parametric ReLU(PReLU)函数
  16. 电商管理系统微服务架构图
  17. 【短链接】——自己实现一个短网址服务
  18. 卡巴斯基实验室2017年威胁预测
  19. 专访阿里云褚霸等--挖掘数据库核心价值
  20. java excel 加密_Java 加密/解密Excel

热门文章

  1. Python小白我用了38行代码把一个网站的pdf资料都下了下来
  2. 为什么HTML中输入中文可自动换行而英文不行?
  3. 怎么把xml文件到url post方法 android,如何在android中使用http post发送xml文件。我在哪里把xml文件放在代码中...
  4. 2023计算机毕业设计SSM最新选题之java免税店销售系统n969j
  5. 2023最新SSM计算机毕业设计选题大全(附源码+LW)之java智慧民政服务平台xl2r9
  6. ubuntu 20.04 安装 vlc、vlc-qt
  7. 直流无刷电机的正弦波控制
  8. 值得看的十大机器学习公开课
  9. 【交通标志识别】基于模板匹配算法实现限速交通标志识别附matlab代码
  10. JavaWeb新闻信息数据维护——评论与回复以及分页