创建conda虚拟环境,指定python版本为3.5:
conda create -n tensorflow python=3.5
conda activate tensorflow
如果无法创建conda虚拟环境并出现
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -需要进行源的配置
win10命令行继续输入(其他系统将win-64改成相应目录即可):
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64 conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64 conda config --set show_channel_urls yes
打开用户目录下的 “.condarc” 文件,最终结果如下: