-
下载安装anaconda
https://www.anaconda.com/download-successvim ~/.condarc
channels: - bioconda
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaultsshow_channel_urls:
export PATH=$PATH:/Users/zhengxueming/anaconda3/bin
source ~/.zshrc#安装环境
conda create --name deeplearning激活
conda activate deeplearning
-
安装pytorch
pip3 install torch torchvision torchaudio
系统有多个python/pip3时,注意安装位置。
- 安装pycharm 并设置
https://www.jetbrains.com/pycharm/