Anaconda3 and lower mounting tensorflow win7

win7 build Anaconda3 and tensorflow environment
where: local python is v3.6.5, Anaconda3 as Anaconda3-5.2.0-Windows-x86_64

1 install python

python3 python2 environment variables and settings coexist

1
%Python3%;%Python3%Scripts;%Python2%;%Python2%Scripts;

Installation and configuration pip 2

Installation and upgrade
python -m pip install -upgrade pip

Domestic sources pip
Tsinghua: https://pypi.tuna.tsinghua.edu.cn/simple
Ali cloud: http://mirrors.aliyun.com/pypi/simple/
China University of Science and Technology https: //pypi.mirrors.ustc. edu.cn/simple/
Huazhong University of Science: http://pypi.hustunique.com/
Shandong University of Technology: http://pypi.sdutlinux.org/
watercress: http://pypi.douban.com/simple/

Change the pip source
windows environment, add or modify as follows:

C: Userswillpippip.ini
1
2
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Linux environment, add or modify as follows:

$HOME/pip/pip.conf
1
2
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Installation and Configuration 3 Anaconda3

3.1 download Anaconda3

Anaconda3-5.2.0 , installation

3.2 Configuration Anaconda3 environment variables

New system variables: ANACONDA3to C:/MyProgramFiles/Anaconda3
add in Path

1
%ANACONDA3%;%ANACONDA3%/Library/mingw-w64/bin;%ANACONDA3%/Library/bin;%ANACONDA3%/Scripts;

After the reference, there is no configuration: %ANACONDA3%/Library/usr/binreason: I did not find the path, probably not win.

Test whether the configuration: Enter the command line: conda

3.3 Login jupyter

Run Jupyter Notebook.
See http://localhost:8888/?token=...for success

3.4 modify coanda source package management

1
2
3
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

May be useful, coanda delete source

1
coanda config --remove channels https:

4 Installation tensorflow

tensorflow version is divided into:

  • CPU版本:pip3 install –upgrade tensorflow
  • GPU version: pip3 install -upgrade tensorflow-gpu (computer does not support)

Installation cpu version
pip install -upgrade tensorflow

tensorflow successful installation test

1
2
3
4
5
python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))

Ref

  1. Anaconda installation and configuration environment
  2. TensorFlow set up in the Windows environment

Original: Large column  installation Anaconda3 and tensorflow under win7


Guess you like

Origin www.cnblogs.com/chinatrump/p/11446036.html