2017-09-05 16 views
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 모듈을. 내가 그 문제를 어떻게 해결할 수 있는지 아십니까?

+0

그런 다음 [it] (https://www.archlinux.org/packages/community/x86_64/tensorboard/)을 설치해야합니다. – Drop

+0

@Drop 연결된 패키지를 설치했는데 필요한 모듈을 설치하지 않았습니다. . – Jonas

+0

다음 중 필요한 모듈은 무엇입니까? – Drop

답변

0

더티 해킹으로 해당 Pip 아카이브를 다운로드하고 아카이브의 contrib/tensorboard 디렉토리를 /usr/lib/python3.6/site-packages/tensorflow/contrib/tensorboard으로 복사 할 수 있습니다.