vscode and Anaconda installation and related environment configuration

Preface

I believe that many friends are initially involved in the field of deep learning like me. So for a newbie, what kind of solution should we choose to run the projects we have studied or downloaded? The most common options are nothing more than two. One is python with vscode/pycharm. This method is not worth recommending. The reason will be discussed later. The other is the mainstream recommended solution, that is, anaconda paired with vscode/pycharm. So why is the second solution recommended? This will be explained in the introduction to anaconda below.

1. Introduction to Anaconda

Anaconda is a set of software packages specifically created to facilitate the use of Python for data science research. It covers common Python libraries in the field of data science. It is pre-installed with conda, a certain version of python, numerous packages, scientific computing tools, etc. , so it is also called a distribution of Python.

In fact, for a beginner like me, my biggest feeling about this is that it is really convenient to manage the environment. Because both the Python version and the software package are constantly updated with the advancement of technology, many functional modules will be simplified or deleted. In this way, many projects from github use the previous version of the environment, so a large number of errors will occur if they are run directly without environment configuration.

conda breaks the constraints of package management and environment management, and can easily install various versions of python and various packages and switch easily. Anaconda includes Conda, Python and a lot of installed tool packages, such as numpy, pandas, etc., so it can solve environmental problems very well.

2. anaconda download and configuration

First, you need to download the corresponding version according to the number of bits of the computer operating system. Check the number of bits of the operating system through the following figure:

There are two downloading methods here. One is through the official website, which is very reliable but the download speed is a bit slow. This method is not recommended, but I still give the official website address:

Anaconda | Anaconda DistributionAnaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine.https://www.anaconda.com/products/distribution#macos

The other is to download from Tsinghua University mirror station through suggestions, which should be much faster than the official website.

It is worth noting that it is best not to download the latest version when downloading, otherwise some unknown errors may occur.

Below I installed a version at random. There are a few points that need to be noted during the installation process. They are explained below in the form of pictures:

The first thing is here. When installing to this interface, click to select all users:

The second point is not to select the c drive when choosing the installation location:

 

 Check the second one here. If you check the first one, problems may arise:

 The two check boxes that appear here need to be canceled:

After the installation is complete, you need to set the environment variables. The setting steps are as follows:

1. Search [Environment Variables] in [Settings] on your computer, then select [Edit System Environment Variables] and open it.

 

 2. Under [Advanced], click [Environment Variables]

 3. Shuang [system change amount] neutral [Path].

4. Click [New] to add the following three variables, and finally click [OK]. Note: The content added here is selected according to your own installation location. If you install it in the [D:\software\Anaconda] directory like me, you can install it like this. In short, you need Add environment variables according to your installation location.

3. vscode installation

Next, install vscode. Of course, you can also choose to install pycharm. In fact, after installing anaconda, you can just enter it and download it. I will demonstrate it to you here:

First, click on anaconda, and the following interface will appear. Because I have already installed it, launch is displayed here. If it has not been installed before, install will be displayed here:

The installation process here is relatively simple. Just follow the instructions step by step. The only thing you need is to set the installation location. Remember not to put it on the default C drive:

Next, enter vscode and click on the app store, download the Chinese version of the extension and install it, then exit vscode and re-enter, the entire interface will become Chinese:

So up to now our anaconda and vscode have been installed. This can be regarded as the first step for newbies. Next, I plan to update how to configure and install some common deep learning software packages. I hope to use my blog to witness my growth.

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/m0_73414212/article/details/129704221