Traceback (most recent call last):
File "/Users/user/Desktop/untitled.py", line 9, in <module>
from tensorflow.examples.tutorials.mnist import input_data
File "/Library/Python/2.7/site-packages/tensorflow/examples/tutorials/mnist/__init__.py", line 21, in <module>
from tensorflow.examples.tutorials.mnist import input_data
File "/Library/Python/2.7/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 "/Library/Python/2.7/site-packages/tensorflow/contrib/__init__.py", line 22, in <module>
from tensorflow.contrib import bayesflow
File "/Library/Python/2.7/site-packages/tensorflow/contrib/bayesflow/__init__.py", line 24, in <module>
from tensorflow.contrib.bayesflow.python.ops import stochastic_graph
ImportError: No module named ops
[Finished in 0.4s with exit code 1]
[shell_cmd: python -u "/Users/user/Desktop/untitled.py"]
[dir: /Users/user/Desktop]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
아니 시발 ops 디렉터리 있는거 다 확인했는데 에러가 왜뜨는거냐
ㅠㅠ 죽겠다
Working 디렉토리에서 "ls -tlr" 결과랑, 소스 import 부분 좀 올려주세요.
아니면 그냥 import ops 라고 입력해보세요. 그냥 import 'ops' 라고 입력하신 것 같네요..
이게 라이브러리에서 호출하는거라.. 내가 만지기가 좀 그러네여,,, 원래 코드는 from tensorflow.examples.tutorials.mnist import input_data 이건데, 쭉쭉 호출스택 쌓다가 툭 에러가 나온거라;; 지금은 아나콘다 설치해서 해결해씁니다.
아나콘다.. 몰랐네요. 좋은 거 배워갑니다. :)