日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2023/12/29 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 pip安装tensorflow报错:could not find a version that satisfies the requirement grpcio>=1.8.6 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。