我正在尝试设置Tensorflow,并使用Anaconda。我在Anaconda环境中安装了Tensorflow,但无法在我的Python库中找到Tensorflow包。
我一直在按照设置说明here进行操作,并且没有运行(tensorflow) adamg:TensorFlow adamg$ python -c 'import os; import inspect; import tensorflow; print(os.path.dirname(inspect.getfile(tensorflow)))'
/Users/adamg/anaconda/envs/tensorflow/lib/python3.5/site-packages/tensorflow
的问题。但是,在下一步中,它要求找到MNIST包。当我运行下面的命令时,我得到的是我认为是tensorflow包的路径:
python -m tensorflow.models.image.mnist.convolutional
使用该路径,然后我尝试同时运行:
python /Users/adamg/anaconda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/models/image/mnist/convolutional.py
和
python: can't open file '/Users/adamg/anaconda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/models/image/mnist/convolutional.py': [Errno 2] No such file or directory
但收到错误:
loadSomething(): Observable<SomeInterface> {
return this.http.get(this.someEndpoint, commonHttpHeaders())
.retryWhen(errors => errors.delay(500));
}
如何找到正确的目录?