300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 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

时间:2020-02-27 00:06:49

相关推荐

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 tensorflowWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='', port=443): 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 tensorflowCollecting 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/sCollecting tensorboard-plugin-wit>=1.6.0Downloading tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)|████████████████████████████████| 779 kB 930 kB/sERROR: 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/sCollecting 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/sRequirement 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/sCollecting pyasn1<0.5.0,>=0.4.6Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)|████████████████████████████████| 77 kB 2.9 MB/sInstalling collected packages: cachetools, pyasn1, pyasn1-modules, rsa, google-authSuccessfully 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 tensorflowCollecting 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>=.4.17 in d:\python_work\venv\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow) (.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.25.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/sUsing 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 ... doneSuccessfully 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.5oauthlib-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 wheel-0.35.1 wrapt-1.12.1

安装成功

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。