In the installation environment Anaconda3 Tensorflow 2.0

background

anaconda various switching environment is very convenient, and now we have to explain how to use the anaconda installation tensorflow environment.

anaconda v3.5 from Tsinghua mirror sites
tensorflow v2.0

step

  1. Start anaconda, click Enviorments, click Create;
  2. Enter the name of a custom environment (for example tensorflow), python designated according to their preferences (Tensorflow1.13.1 version and subsequent versions support Python3.7)
  3. Top right of the search tensorflow, check
  4. Click the lower right corner applyto

test

  1. Switch to the tensorflowenvironment
  2. Anaconda Prompt open terminal inputpython
  3. python interactive terminal, the output of the following contents
# Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 14:00:49) [MSC v.1915 64 bit (AMD64)] on win32
# Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.0.0'

Guess you like

Origin www.cnblogs.com/schips/p/12155253.html