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
- Start anaconda, click
Enviorments
, click Create; - 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) - Top right of the search
tensorflow
, check - Click the lower right corner
apply
to
test
- Switch to the
tensorflow
environment - Anaconda Prompt open terminal input
python
- 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'