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/download
Click this button to start downloading
3.Installation
1. Run the installation package just downloaded
2. Click Next
3. Click to agree
4. Select to install for all users of the system and click Next
5. Select the installation path and next step
6. It is recommended to check all three and then click Step
7. Waiting for installation
8. After the installation is complete, keep clicking Next
9. Uncheck and click Finish
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
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
5. Configure loop solution variables
1. Open the properties of this computer and find the advanced system settings
2. Click on environment variables
3. Find the path and click edit
4. Add the following paths in sequence
5. Verification is successful
Open the terminal and enter conda --version
. When the version number appears, the installation is successful.
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
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
After modification
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
Click Security, select Users, and click Edit
Check “Allow” for all permissions below except “Special Permissions”
4. Verification is successful
Open Anaconda Navigator
Click Encironments, then click create
Give the virtual environment a name and select the python version
At this time, the path of the virtual environment is no longer on the c drive.
Click create to complete the creation