The Anaconda installation is community supported, not officially supported.
Take the following steps to install TensorFlow in an Anaconda environment:
Assuming that you have installed one of the python version (Python2.7 or Python 3.X)
First Install Anaconda for your PC.
- There are two version of Anaconda available for your Windows PC. 32bit and 64bit
- To check what windows version you have, go to > Control Panel\All Control Panel Items\System.
- Check what python version you have. To check that open command prompt.
- python -V or python –version
- I have installed both the version of Python.
- We will install anaconda for python 3.6 version. Go to website: https://www.anaconda.com/download/
- Download appropriate Anaconda version from Anaconda website.
- Below is installation process of Anaconda:
- You can check mark on (Add Anaconda to my PATH environment variable) or you can set it up manually.
- Here I am adding Anaconda path manually to environment variable.
- To add Anaconda path on environment variable open:
- Control Panel\All Control Panel Items\System
- Open Advanced System Settings -> click on Environment variables
- In system variable open PATH variable
- Add new path (Add path to Anaconda Folder)\Scripts
- Click OK
- Open Anaconda prompt or open command prompt from start menu
- Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow pip python=3.6
- Activate the conda environment by running the following command:
C:> activate tensorflow
(tensorflow)C:> # Your prompt should change
- Run the appropriate command to install TensorFlow version inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:
(tensorflow)C:> conda install tensorflow
- To install the GPU version of TensorFlow, enter the following command (on a single line):
0 Comments:
Post a Comment