Easiest Way to Install TensorFlow on Your Machine
Anaconda takes a lot of the pain out of getting the necessary Python packages installed for data science. Additionally, Anaconda can make it extremely easy to install TensorFlow. When installing Python packages for development, using environments with Anaconda makes it easy to avoid conflicts between Python package versions.
This Gist will create an Anaconda environment that has TensorFlow and a number of other “must have” data science packages:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Mac OS or Linux | |
| conda create -n tensorflow python=3.5 | |
| source activate tensorflow | |
| pip install widgetsnbextension | |
| conda install pandas matplotlib jupyter notebook scipy scikit-learn | |
| conda install -c conda-forge tensorflow | |
| //Windows | |
| conda create -n tensorflow python=3.5 | |
| activate tensorflow | |
| pip install widgetsnbextension | |
| conda install pandas matplotlib jupyter notebook scipy scikit-learn | |
| conda install -c conda-forge tensorflow |
See more of our posts on TensorFlow and Anaconda!