1
pacman
을 통해 내 아치 리눅스 컴퓨터에 tensorflow
을 설치했습니다. 나는 mnist 문제에 대한 공식 example code을 실행하려고하지만이 오류 얻을 :ModuleNotFoundError : 'tensorflow.contrib.tensorboard'모듈이 없습니다.
Traceback (most recent call last):
File "mnist_example.py", line 27, in <module>
from tensorflow.examples.tutorials.mnist import input_data
File "/usr/lib/python3.6/site-packages/tensorflow/examples/tutorials/mnist/__init__.py", line 21, in <module>
from tensorflow.examples.tutorials.mnist import input_data
File "/usr/lib/python3.6/site-packages/tensorflow/examples/tutorials/mnist/input_data.py", line 29, in <module>
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/__init__.py", line 38, in <module>
from tensorflow.contrib import keras
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/__init__.py", line 26, in <module>
from tensorflow.contrib.keras.api.keras import *
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/api/keras/__init__.py", line 25, in <module>
from tensorflow.contrib.keras.api.keras import activations
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/api/keras/activations/__init__.py", line 22, in <module>
from tensorflow.contrib.keras.python.keras.activations import elu
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/__init__.py", line 21, in <module>
from tensorflow.contrib.keras.python.keras import activations
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/activations.py", line 24, in <module>
from tensorflow.contrib.keras.python.keras.engine import Layer
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/engine/__init__.py", line 26, in <module>
from tensorflow.contrib.keras.python.keras.engine.training import Model
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/engine/training.py", line 28, in <module>
from tensorflow.contrib.keras.python.keras import callbacks as cbks
File "/usr/lib/python3.6/site-packages/tensorflow/contrib/keras/python/keras/callbacks.py", line 34, in <module>
from tensorflow.contrib.tensorboard.plugins import projector
ModuleNotFoundError: No module named 'tensorflow.contrib.tensorboard'
나는 tensorboard
폴더를 찾을 수 없습니다와 tensorflow/contrib/
폴더에 따라서하지 요청 projector
모듈을. 내가 그 문제를 어떻게 해결할 수 있는지 아십니까?
그런 다음 [it] (https://www.archlinux.org/packages/community/x86_64/tensorboard/)을 설치해야합니다. – Drop
@Drop 연결된 패키지를 설치했는데 필요한 모듈을 설치하지 않았습니다. . – Jonas
다음 중 필요한 모듈은 무엇입니까? – Drop