Based anaconda installation tensorflow1.14 (cpu version) under window10

Before installing tensorflow under windows10 has not succeeded, online tutorials also find that not part of the package download is unsuccessful, the installation is successful import tensorflow not implemented, and now sort out cases of successful installation

1. First mounting Anaconda (recommended), the installation process may be particularly Baidu

2. After a successful installation Anaconda Prompt to open a command line

3. Install a virtual environment: conda create -n snake python = 3.6

4. Switch to the installation environment: conda activate snake

5. View tensorflow version: conda search --full-name tensoflow

If you have previously installed tensorflow recommended prior to the next:
Conda Uninstall tensorflow

6. Domestic switching mirror source: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 

conda config --set show_channel_urls yes 

7. Update about numpy: pip install -U numpy

8. Installation tensorflow: conda install --channel https://conda.anaconda.org/anaconda tensorflow = 1.14.0 (note with PIP Conda command instead, always download some packages otherwise incomplete, the specific cause is not clear)

After the show done so completely after execution

Enter the command python:

import tensorflow as tf

Not being given represents a successful installation

 

Guess you like

Origin www.cnblogs.com/jcraft/p/12425663.html