Anaconda installation tutorial
1. Introduction to Anaconda
Anaconda is a Python distribution for scientific computing. It supports Linux, Mac, and Windows systems. It provides package management and environment management functions, which can be easilySolve the problems of multi-version Python coexistence, switching and installation of various third-party packages, greatly simplifying our workflow.
2. Anaconda download
Two download methods are listed below, of course,The first recommendation is to download from Tsinghua Mirror Station。
(1) Official download address:
latest version: https://www.anaconda.com/products/distribution
historical version: https://repo.anaconda.com/archive/
(2) Tsinghua mirror download address: https://mirrors.bfsu.edu.cn/anaconda/archive/
Note: The Tsinghua mirror here refers to the open source software mirror site of Tsinghua University , which is committed to providing high-quality open source software mirrors and Linux mirror source services for domestic and on-campus users, helping users obtain open source software more conveniently. In short, downloading open source software from this mirror site is very fast. Specifically, after entering the website, select [anaconda] and [archive/] in turn to find the Tsinghua image download page of Anaconda, as follows:
- Step 1: Click [Anaconda]
- Step 2: Click [archive/]
- After completing the above two steps, you can enter the Anaconda Tsinghua mirror download page.
(3) After entering Anaconda’s Tsinghua mirror download page, I believe that many people may be the same as the author at the beginning, and do not know which one to download, because this page can only see information such as Anaconda’s release time and applicable operating system, but not to the corresponding conda and Python version information. Taking the following as an example, we can only see that this version was released in May 2022 and is suitable for 64-bit Windows operating systems, but what is the specific conda version and python version, we can't tell from here .If you don’t want to delve into it, you can directly download the link in the red box below. This link corresponds to Anaconda’s conda version 4.12.0 and python version 3.9.12, which are not very old or new, and then jump directly On to the third part of this blog. Since the author's old computer is this version, this version is also installed on the new computer. If you want to download the specified version of conda or python, you can continue to read down and choose the Anaconda that suits you。
-
We can query the conda and python version information corresponding to Anaconda at https://docs.anaconda.com/anaconda/packages/oldpkglists/ .
-
The interface is as follows:
-
Scroll down, take the following one as an example, although the release time is not written, it should be inferred from the context that it is Anaconda released in May 2022, and the operating system is 64-bit Windows.
-
Click the link in the red box above, enter the following interface, and slide down, you can see that the Anaconda version is 4.12.0, and the python version is 3.9.12.
-
Since the corresponding conda version of Anaconda on the author's old computer is 4.12.0, and the python version is 3.9.12, the author speculates that the previous installation of the old computer should be Anaconda released in May 2022. Therefore, the author went to the Tsinghua mirror to install Anaconda3, which was released in May 2022 and is suitable for 64-bit operating systems (Anaconda3 corresponds to Python3).
3. Anaconda installation
-
Step 1: After the download is complete, double-click the file.
-
Step 2: Click [Next]
-
Step 3: Click【I Agree】
-
Step 4: Select [All Users] and click [Next].
-
Step 5: Select the installation location and click [Next].Note that it is recommended that you install it on the D drive and try not to occupy the system C drive.
-
Step 6: Only check the second one, and then click [Install].Note, do not check the first one here, otherwise problems will easily occur.
-
Step Seven: Wait for the installation
-
Step 8: The installation is complete
-
Step 9: Click [Next]
-
Step 10: Uncheck the two ticks and click [Finish].
4. Configure the Anaconda environment
- Step 1: Search [Environment Variables] in the [Settings] of the computer, then select [Edit System Environment Variables] and open it.
- Step 2: Under [Advanced], click [Environment Variables].
- Step 3: Double-click [Path] in [System Variables].
- Step 4: Click [New], and add the following four variables in turn, and finally click [OK].Note: The author installed Anaconda in [D:\software\Anaconda]. You need to add environment variables according to your installation location.
5. Test whether Anaconda is configured successfully
-
Step 1: Press the Win and r keys at the same time to open the Run dialog box, enter [cmd], and click [OK].
-
Step 2: Enter [conda --version] to see if there is a conda environment.
-
Step 3: Enter [python] to check whether there is a python environment.
-
Step 4: Enter [conda info] to check whether the corresponding versions exist.
-
Step 5: Press the win key to see if there is Anaconda in the list.
At this point, the installation is completely over! It is recommended that you bookmark this blog so that you can quickly find it next time, thus saving time. After all, programmers’ time is precious~