eleijonmarck eleijonmarck - 9 months ago 83
Python Question

Where is the folder for Installing tensorflow with pip, Mac OSX?

just installed tensorflow using pip with the command:

$ pip install tensorflow

On the "Getting Started" for Tensorflow they have an example for convolutional neural networks

$ python tensorflow/models/image/mnist/convolutional.py

Where is that directory located when installing with pip?

Answer Source

Installing with pip, installs the packages to the directory "site-packages".

The following code shows the location of tensorflow as well as where pip installs the packages:

$ pip show tensorflow

Which return:

Metadata-Version: 2.0
Name: tensorflow
Version: 0.5.0
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.com/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires: six, numpy

here Location: shows where the package is installed with

$ cd /usr/local/lib/python2.7/site-packages/tensorflow