Win11 installs the latest version of Anaconda

0. Preface

(The nonsense can be skipped: It has been three or four years since the subject started to learn python and install anaconda. Recently, I changed my computer and started again from the beginning. I think most of you learn AI from this step. Thinking of the many difficulties encountered at the beginning, It is recorded from this. It is really a long way to Xiongguan, and now it is overtaking from the beginning.)

Install Anaconda 2022.10 version under win11 system.

This article has less text and more pictures , and most of the steps are marked in the pictures.

  1. Download the installation package (executable file)

Official website URL: https://www.anaconda.com/

If the download from the official website is too slow, the following is the link to Baidu Netdisk:

Link: https://pan.baidu.com/s/1zNiKsMx5F1RiCF2T1WgSUw?pwd=0czp

Extract code: 0czp

Other system versions such as MacOS, Linux

Download an executable file: Anaconda3-2022.10-Windows-x86_64.exe

  1. official installation

2.1 Double-click the executable file to start the installation

2.2 Change the installation path description

By default, it is installed on the C drive (it is said that it can save a lot of trouble), but the subject is used to installing the software to D, and if you don’t want to change it, you can go to Next directly.

After changing to the D drive (the subject is installed to D:\Anaconda3), click Next:

2.3 Check Instructions

Only check the second one, click Install

2.4 Wait patiently for the installation, all the way to Next

  1. Configure environment variables

This computer (right click)—>Properties—>Advanced system settings—>Environment variables, get the following picture:

Enter the following five environment variables one by one:

D:\Anaconda3 (required for Python)

D:\Anaconda3\Scripts (conda comes with scripts)

D:\Anaconda3\Library\mingw-w64\bin (when using C with python)

D:\Anaconda3\Library\usr\bin

D:\Anaconda3\Library\bin (jupyter notebook dynamic library)

由于我是在D:\Anaconda3路径下安装,环境变量同上。其他路径同理操作。

以上5条环境变量参考https://zhuanlan.zhihu.com/p/75717350

  1. 验证安装是否成功

win+r——>输入cmd,在命令窗口中,逐个输入python和anaconda命令

如图示操作:

  1. 添加包下载源

右下角开始菜单——>所有应用——>找到 Anaconda prompt右键以管理员身份运行,如下图:

依次输入以下命令,添加下载源:

conda config --set show_channel_urls yes (设置为yes:在下载包的时候会显示下载源地址)

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 --show channels(显示所有下载源)

添加上述两条下载源,已经能满足大多数的下载需求,下面是笔者自己电脑的上的,有没有用看用来下载什么内容,读者随意添加,非必须。

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

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/pkgs/main/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/pytorch/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

6. 参考链接

环境变量:https://zhuanlan.zhihu.com/p/75717350

添加安装源:https://blog.csdn.net/m0_52307083/article/details/123391977

有帮助请点赞收藏,有任何问题请评论留言。

转载请注明出处,谢谢。

Guess you like

Origin blog.csdn.net/weixin_46415460/article/details/129624523