February 2018
Intermediate to advanced
450 pages
11h 27m
English
In this section, we are going to install TensorFlow for macOS X using virtualenv. So, let's start off by installing the pip tool by issuing the following command:
sudo easy_install pip
Next, we need to install the virtual environment library:
sudo pip install --upgrade virtualenv
After installing the virtual environment library, we need to create a container or virtual environment which will host the installation of TensorFlow and any packages that you might want to install without affecting the underlying host system:
virtualenv --system-site-packages targetDirectory # for Python 2.7
virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n
This assumes that the targetDirectory ...
Read now
Unlock full access