You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# 下载地址
|
|
|
|
|
https://www.anaconda.com/download
|
|
|
|
|
|
|
|
|
|
# 安装与配置
|
|
|
|
|
https://blog.csdn.net/2302_76672693/article/details/144267428
|
|
|
|
|
|
|
|
|
|
# 将下面的四个目录添加到环境变量中
|
|
|
|
|
D:\anaconda3\Library\mingw-w64\bin
|
|
|
|
|
D:\anaconda3\Library\bin
|
|
|
|
|
D:\anaconda3\Library\usr\bin
|
|
|
|
|
D:\anaconda3\Scripts
|
|
|
|
|
|
|
|
|
|
# 确认是否安装成功
|
|
|
|
|
WIN+R,输入cmd打开控制台,输入conda -V
|
|
|
|
|
|
|
|
|
|
# 设置Anaconda镜像
|
|
|
|
|
|
|
|
|
|
conda config --remove-key channels
|
|
|
|
|
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
|
|
|
|
|
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
|
|
|
|
|
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
|
|
|
|
|
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
|
|
|
|
|
conda config --show channels
|
|
|
|
|
conda create --name python312 python=3.12
|
|
|
|
|
|
|
|
|
|
# 使用Anaconda 的黑窗口进行配置
|
|
|
|
|
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda (anaconda3)\Anaconda Prompt.lnk
|
|
|
|
|
|
|
|
|
|
# 激活环境
|
|
|
|
|
conda activate python312
|
|
|
|
|
|
|
|
|
|
# 查看当前环境
|
|
|
|
|
conda env list
|
|
|
|
|
|
|
|
|
|
# 退出虚拟环境
|
|
|
|
|
conda deactivate
|
|
|
|
|
|
|
|
|
|
# 查看已安装了哪些包
|
|
|
|
|
pip list
|