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 |
n3 ; Python3 Scripts; Python2 ; Python2 Scripts; Pytho |
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:
1 |
[global] |
Linux environment, add or modify as follows:
1 |
[global] |
Installation and Configuration 3 Anaconda3
3.1 download Anaconda3
Anaconda3-5.2.0 , installation
3.2 Configuration Anaconda3 environment variables
New system variables: ANACONDA3
to 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/bin
reason: 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 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |
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 |
python |
Ref
Original: Large column installation Anaconda3 and tensorflow under win7