Gu-Youngfeng / LearningTensorflow

Some codes during the study process.
0 stars 1 forks source link

Installing TensorFlow on Windows #8

Open Gu-Youngfeng opened 4 years ago

Gu-Youngfeng commented 4 years ago

Firstly, I'd like to say that, it is easier to install the TensorFlow on Linux or Mac platform, e.g., you only need to execute the following commands on the two platforms,

For Linux,

pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl

For Mac,

pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl

However, it was hard for Windows users to install the TensorFlow, where several unexpected errors or warnings have occurred. Anyone has easier way to install it?

Gu-Youngfeng commented 4 years ago

According to the setup document of TensorFlow (link), it seems that no official installation method for Windows users is provided. But, an alternative way, you can install TensorFlow on top of the Anaconda environment.

Good news is that TensorFlow in this environment can achieve a better performance than that in pip. Two ways for installation.

Way-1. Install TensorFlow on the base environment.

conda install tensorflow

Way-2. Create a new environment for TensorFlow.

conda create -n [new_env_name] tensorflow
conda activate [new_env_name]

More information refers to the website (link)