## 安装conda 下载安装包后安装 ## 安装pytorch ```shell conda install pytorch torchvision -c pytorch -y ``` ## 创建虚拟环境 ``` conda create -n dp37 python=3.7 numpy matplotlib pandas jupyter notebook -y ``` ## 进入dp37虚拟环境 ```shell conda activate dp37 ``` ## 退出dp37 ```shell conda deactivate ``` ## 进入jupyter notebook ```shell jupyter notebook ``` ## 测试 创建python3文件 输入 ```python import torch torch.FloatTensor([6,6,6]) ``` Leanote 支持的markdown语法 VSCode使用常用姿势
No Leanote account? Sign up now.