anaconda+pytorch+tensorflow

anaconda官网下载

Anaconda | The World's Most Popular Data Science Platform

别忘了添加系统环境


到Nvidia更新驱动

conda create -n xxx python==3.7

conda activate xxx


pytorch官网安装

PyTorch

tensorflow用清华源镜像安装

pip install tensorflow-gpu==x.x.x -i https://pypi.mirrors.ustc.edu.cn/simple

gpu对应的cuda和cudnn在在 Windows 环境中从源代码构建  |  TensorFlow (google.cn)

anaconda安装对应版本的

conda install cudatoolkit=x.x.x

conda install cudnn=x.x

1.15.0 10.0 7.6


安装内核

conda install nb_conda

python -m ipykernel install --user --name xxx --display-name "xxx"


jupyter插件

pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user


导出环境

conda env export > environment.yml

condalist --explicit > filename.txt

导入环境

conda env create -f environment.yml

conda install --name environment_Name --file filename.txt


一些必备的库

scipy

numpy

matplotlib

你可能感兴趣的:(anaconda+pytorch+tensorflow)