如何解决Anaconda环境中的错误?

时间:2018-10-02 16:11:17

标签: python tensorflow

我已经安装了tensorflow并想对其进行更新,但是出现以下错误:

(base) C:\WINDOWS\system32>pip install tensorflow --upgrade
Collecting tensorflow
  Using cached https://files.pythonhosted.org/packages/af/5b/695e2e66feb27742a78f938d8369cc874b5fc7082193c3352c9db599af01/tensorflow-1.11.0-cp35-cp35m-win_amd64.whl
Requirement not upgraded as not directly required: gast>=0.2.0 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (0.2.0)
Requirement not upgraded as not directly required: astor>=0.6.0 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (0.7.1)
Collecting keras-applications>=1.0.5 (from tensorflow)
  Using cached https://files.pythonhosted.org/packages/3f/c4/2ff40221029f7098d58f8d7fb99b97e8100f3293f9856f0fb5834bef100b/Keras_Applications-1.0.6-py2.py3-none-any.whl
Collecting setuptools<=39.1.0 (from tensorflow)
  Using cached https://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl
Requirement not upgraded as not directly required: termcolor>=1.1.0 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (1.1.0)
Collecting tensorboard<1.12.0,>=1.11.0 (from tensorflow)
  Using cached https://files.pythonhosted.org/packages/9b/2f/4d788919b1feef04624d63ed6ea45a49d1d1c834199ec50716edb5d310f4/tensorboard-1.11.0-py3-none-any.whl
Requirement not upgraded as not directly required: numpy>=1.13.3 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (1.15.2)
Requirement not upgraded as not directly required: six>=1.10.0 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (1.11.0)
Requirement not upgraded as not directly required: wheel>=0.26 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (0.31.1)
Requirement not upgraded as not directly required: absl-py>=0.1.6 in c:\programdata\anacondav\lib\site-packages (from tensorflow) (0.4.1)
Collecting protobuf>=3.6.0 (from tensorflow)
  Using cached https://files.pythonhosted.org/packages/2f/30/2b3caddd3d7e15e919e8b03059ccf0eb9ccef62a9085a9ad92a5823193b7/protobuf-3.6.1-cp35-cp35m-win_amd64.whl
Requirement not upgraded as not directly required: h5py in c:\programdata\anacondav\lib\site-packages (from keras-applications>=1.0.5->tensorflow) (2.8.0)
Requirement not upgraded as not directly required: werkzeug>=0.11.10 in c:\programdata\anacondav\lib\site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (0.14.1)
Requirement not upgraded as not directly required: markdown>=2.6.8 in c:\programdata\anacondav\lib\site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (2.6.11)

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\programdata\\anacondav\\lib\\site-packages\\tensorflow-1.10.0.dist-info\\METADATA'

您能给我一些建议吗?

0 个答案:

没有答案