http://c.biancheng.net/view/1881.html
https://blog.csdn.net/weixin_42555985/article/details/104182699
系统:64位win10
1.清华镜像站安装Anaconda3-4.3.0-Windows-x86_64.exe
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
安装成功验证:conda --version
2.安装完执行python
C:\Users\XXX>python
Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
3.anaconda源修改为国内镜像源,否则进行第四步时会出错(通过修改用户目录下的 .condarc
文件)
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
文件内容修改为:
channels:
- defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
或者输入命令修改conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
查看源conda config --show-sources
4.创建环境
C:\Users\XXX>conda create --name tensorflow python=3.6
Fetching package metadata .............
Solving package specifications: .
Warning: 4 possible package resolutions (only showing differing packages):
- defaults::vc-14.1-h21ff451_4, defaults::wincertstore-0.2-py36_0
- defaults::vc-14.1-h0510ff6_4, defaults::wincertstore-0.2-py36_0
- defaults::vc-14.1-h21ff451_4, defaults::wincertstore-0.2-py36h7fe50ca_0
- defaults::vc-14.1-h0510ff6_4, defaults::wincertstore-0.2-py36h7fe50ca_0
Package plan for installation in environment D:\anaconda\envs\tensorflow:
The following NEW packages will be INSTALLED:
certifi: 2019.11.28-py36_0 defaults
pip: 20.0.2-py36_1 defaults
python: 3.6.10-h9f7ef89_0 defaults
setuptools: 45.2.0-py36_0 defaults
sqlite: 3.31.1-he774522_0 defaults
vc: 14.1-h21ff451_4 defaults
vs2015_runtime: 14.16.27012-hf0eaf9b_1 defaults
wheel: 0.34.2-py36_0 defaults
wincertstore: 0.2-py36_0 defaults
Proceed ([y]/n)? y
vs2015_runtime 100% |###############################| Time: 0:00:01 2.49 MB/s
vc-14.1-h21ff4 100% |###############################| Time: 0:00:00 1.54 MB/s
sqlite-3.31.1- 100% |###############################| Time: 0:00:00 1.45 MB/s
python-3.6.10- 100% |###############################| Time: 0:00:15 1.36 MB/s
certifi-2019.1 100% |###############################| Time: 0:00:00 5.34 MB/s
wincertstore-0 100% |###############################| Time: 0:00:00 0.00 B/s
setuptools-45. 100% |###############################| Time: 0:00:00 5.06 MB/s
wheel-0.34.2-p 100% |###############################| Time: 0:00:00 5.98 MB/s
pip-20.0.2-py3 100% |###############################| Time: 0:00:01 1.79 MB/s
#
# To activate this environment, use:
# > activate tensorflow
#
# To deactivate this environment, use:
# > deactivate tensorflow