Anaconda download and installation

1. Overview

1) Contains conda: conda is an environment manager whose functions rely on the conda package. This environment manager is similar to pip.

2) Install a large number of tool packages: Anaconda will automatically install a basic python, and the version of python is related to the version of Anaconda. A large number of tool packages have been installed in python, which is a great convenience for scientific analysis and calculation. Are you willing to waste time and energy to install each package using pip?

3) You can create, use and manage multiple different Python versions: For example, if you want to create a new framework or use a basic Python version different from the one installed by Anoconda, Anoconda can manage multiple python versions at the same time.

2.Download

Official website address: https://www.anaconda.com/downloadimage-20231028205500868

Click this button to start downloading

3.Installation

1. Run the installation package just downloaded

image-20231028205840319

2. Click Next

image-20231028205858757

3. Click to agree

image-20231028205932713

4. Select to install for all users of the system and click Next

image-20231028210010258

5. Select the installation path and next step

image-20231028210107415

6. It is recommended to check all three and then click Step

image-20231028210603916

7. Waiting for installation

image-20231028210632680

8. After the installation is complete, keep clicking Next

9. Uncheck and click Finish

image-20231028211332726

4.Change the mirror source

When using Anaconda to install some frameworks, etc., if the download using the default source address is very slow, changing to the domestic mirror address will be very fast, so we need to change its mirror source.

1. Find anaconda Prompt and open it

image-20231028211854446

2. Execute the following commands in sequence to add the Tsinghua mirror configuration to Anaconda:

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 --set show_channel_urls yes

image-20231028212243602

5. Configure loop solution variables

1. Open the properties of this computer and find the advanced system settings

image-20231028212412894

2. Click on environment variables

image-20231028212427679

3. Find the path and click edit

image-20231028212535973

4. Add the following paths in sequence

image-20231028212907784

5. Verification is successful

Open the terminal and enter conda --version. When the version number appears, the installation is successful.

image-20231028213116738

6. Modify the virtual environment location

When downloading anaconda, the download path is not set on the c drive, but the new virtual environment is always on the c drive.

1. Open the c drive, click Users, and find the .condarc file

image-20231028213353940

2. Click Edit

Check whether the content of the file is (if not, change it to this):

channels:
  -defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  envs_dirs:
  -D (which disk is up to you):// (the following file path is also up to you) anaconda3//envs

before fixing

image-20231028213514568

After modification

image-20231028213701773

3. Modify permissions

Next, it stands to reason that many people’s newly created virtual environments should be in the file path you set, but some people’s can’t because the folder permissions you set by yourself do not allow you to operate by default, so you need to set it yourself. Set the folder of the virtual environment path. The setting steps are as follows

Open the properties of envs

image-20231028214426282

Click Security, select Users, and click Edit

image-20231028214507124

Check “Allow” for all permissions below except “Special Permissions”

image-20231028214645252

4. Verification is successful

Open Anaconda Navigator

image-20231028213828298

Click Encironments, then click create

image-20231028214057724

Give the virtual environment a name and select the python version

image-20231028214141599

At this time, the path of the virtual environment is no longer on the c drive.

image-20231028214831959

Click create to complete the creation
image-20231028215922907