在python 2.7上安装tensorboard,遇到cachetools版本不匹配

问题描述 投票:0回答:1

我正在尝试使用python2.7安装tensorboard,但遇到版本不匹配,这是命令

pip install tensorboard

Collecting tensorboard
Downloading http:/.../tensorboard-2.1.0-py2-none-any.whl (3.8MB)
....
Collecting cachetools<5.0,>=2.0.0 (from google-auth<2,>=1.6.3->tensorboard)
  Downloading http://.../cachetools-4.0.0.tar.gz
cachetools requires Python '~= 3.5' but the running Python is 2.7.16

tensorflow pip tensorboard
1个回答
1
投票

[经过数小时的搜索,对于最近遇到此问题的用户,仍使用旧的tensorflow版本和python 2.7。您应该注意到这一点:

Releases prior to 1.6.0 were published under the tensorflow-tensorboard name 
and may be found at https://pypi.python.org/pypi/tensorflow-tensorboard.

来自https://pypi.org/project/tensorboard/

对于我来说,使用python2.7和自编译的tensorflow 1.11.0,只需使用它就可以了

pip install tensorflow-tensorboard

代替此

pip install tensorboard
cachetools requires Python '~= 3.5' but the running Python is 2.7.16
© www.soinside.com 2019 - 2024. All rights reserved.