Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 657
eleijonmarck Avatar asked Nov 09 '15 19:11

eleijonmarck


People also ask

Where is TensorFlow installed with Pip?

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:

How to install TensorFlow CPU on Mac?

Below are the instructions to be followed for installing Tensorflow CPU on a Mac computer: If Python is installed, go to terminal as shown below. Then type pip3 as shown below. If pip is already installed on your Mac, you will see a lot of options as shown below. Then type pip3 install tensorflow as shown below.

How to use TensorFlow with Python?

1. Install the Python development environment on your system 2. Create a virtual environment (recommended) 3. Install the TensorFlow pip package tensorflow —Latest stable release with CPU and GPU support (Ubuntu and Windows) tf-nightly —Preview build (unstable) . Ubuntu and Windows include GPU support .

How do I install TensorFlow in tf_m1?

In the tf_m1 environment, you can now install the above two libraries using the following command: Once the two libraries are installed, you can test out TensorFlow by launching Python and then importing TensorFlow and printing out its version number:


1 Answers

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: [email protected] 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 

EDIT:

As some people pointed out in the newer versions of tensorflow and depending on the $ echo $TENSORFLOW you need to look in either

$ cd /usr/local/lib/python{2,3}.X/{site,dist}-packages/tensorflow 

Or

$ cd /usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/framework 
like image 169
eleijonmarck Avatar answered Sep 22 '22 02:09

eleijonmarck