0002-tensorflow install --Anaconda

1. Download ANACONDA
After the experiment, the operating system must be 64-bit. First download ANACONDA.
https://www.continuum.io/downloads#windows
Note that you must download " Anaconda3-4.2.0-Windows-x86_64 ", Because you need to install the built-in python must be 3.5, you can call TensorFlow
but anaconda4.3 comes with python3.6, you cannot call TensorFlow

Second, install Anaconda3-4.2.0-Windows-x86_64
Third, check whether python is installed successfully
cmd
python

Fourth, pip upgrade
1, pip -V to view the current version of pip
2, python -m pip install -U pip
3, pip -V

C:\Users\Administrator>python -m pip install -U pip
Collecting pip
  Using cached pip- 9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1

5. Install tensorflow
1. Run cmd as administrator to
switch to D:\Program Files\Anaconda3\Scripts>

2. Execute
pip install tensorflow

3. After successful installation, Execute the following code to test whether tensoflow is successfully installed
python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326708101&siteId=291194637