win10+CPU,tensorflow的安装(通过anaconda)

英文原版安装说明:

Installing withAnaconda

The Anaconda installation is communitysupported, not officially supported.

Take the following steps to installTensorFlow in an Anaconda environment:

  1. Follow the instructions on the Anaconda download site to download and install Anaconda.
  2. Create a conda environment named tensorflow by invoking the following command:

C:> conda create -n tensorflow python=3.5

  1. Activate the conda environment by issuing the following command:
  2. C:> activate tensorflow

 (tensorflow)C:>  # Your prompt should change

  1. Issue the appropriate command to install TensorFlow inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:

(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow

To install the GPU version ofTensorFlow, enter the following command (on a single line):

(tensorflow)C:> pip install --ignore-installed --upgradetensorflow-gpu

Validate yourinstallation

Start a terminal.

If you installed through Anaconda,activate your Anaconda environment.

Invoke python from your shell asfollows:

 实际操作:

1.    安装ANACONDA


2.    点击anaconda prompt依次输入命令“”

1.    C:>conda create -n tensorflow python=3.5

2.    C:>activate tensorflow

 (tensorflow)C:>  # Your prompt should change

3.     (tensorflow)C:> pip install--ignore-installed --upgrade tensorflow


验证测试 英文说明

Validate yourinstallation

Start a terminal.

If you installed through Anaconda,activate your Anaconda environment.

Invoke python from your shell asfollows:

$ python

Enter the following short program insidethe python interactive shell:

>>> importtensorflow as tf
>>> hello = tf.constant(
'Hello, TensorFlow!')
>>> sess = tf.
Session()
>>>
print(sess.run(hello))

If the system outputs the following,then you are ready to begin writing TensorFlow programs:

Hello, TensorFlow!

If you are new to TensorFlow, see Getting Started with TensorFlow.

 实际测试

4.打开jupyter,测试运行成功


猜你喜欢

转载自blog.csdn.net/bufengzj/article/details/79112949