环境配置(Win)
一、安装Minicondahttps://docs.conda.io/en/latest/miniconda.html
![image.png](https://cdn.nlark.com/yuque/0/2023/png/35461360/1679384402091-0d2c4643-d0bc-44cb-a136-4b4d2df2a989.png?x-oss-process=image%2Fresize%2Cw_1125%2Climit_0)
![image.png](https://cdn.nlark.com/yuque/0/2023/png/35461360/1679385062558-bf68e027-10b9-47f7-aa63-df3ecff238cc.png)
更改镜像源
conda
notepad .condarc
![image.png](https://cdn.nlark.com/yuque/0/2023/png/35461360/1679385271383-bcf0f3b5-3b91-4a05-b42e-6919ce558160.png)
pypi
pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple
二、安装Git
https://ghproxy.com/
https://github.com/git-for-windows/git/releases/download/v2.40.0.windows.1/Git-2.40.0-64-bit.exe
三、下载课程Repo
https://ghproxy.com/
git clone (--depth=1) https://github.com/d2l-ai/d2l-zh.git #课程资源
git clone (--depth=1) https://github.com/d2l-ai/d2l-pytorch-slides.git #ppt
四、课程环境搭建
4.1搭建环境
conda create --name d2l python=3.9
y
激活创建的d2l Conda环境
conda activate d2l
退出环境
conda deactivate
删除环境
conda remove -n d2l --all
4.2安装库
pip install d2l torch torchvision rise
![image.png](https://cdn.nlark.com/yuque/0/2023/png/35461360/1679388849052-6e692dae-a587-4479-8694-86d2dcd064c0.png)
进入到项目文件夹,打开jupyter-notebook
conda activate d2l
cd D:\software\d2l-master
jupyter-notebook
![image.png](https://cdn.nlark.com/yuque/0/2023/png/35461360/1679389956353-bc8a06e0-adb7-4ee9-8f68-ab7c3331e617.png?x-oss-process=image%2Fresize%2Cw_1125%2Climit_0)
关闭jupyter-notebook
ctrl+c
标签:git,--,Win,动手,conda,d2l,https,李沐,com From: https://www.cnblogs.com/mhjgreat/p/17241727.html