[Data Analysis - Basic Introduction to NumPy①] Anaconda installation and use

foreword

Hello everyone! I am Sunny Flower Huahua, and this issue brings you the installation and use of Anaconda.

Daily golden sentence sharing: The story is not long and not difficult to tell. 』—— "I make up the number of days in the world"

1. What is Anaconda

Anaconda is an open source Python distribution focused on data analysis, including more than 190 scientific packages such as conda and Python and their dependencies.

2. Why use Anaconda

Anaconda is very friendly to python beginners. Compared with installing the python main program alone, choosing Anaconda can help save a lot of trouble. Anaconda has added many commonly used function packages. If you install python separately, these function packages need to be installed one by one. Installation, you don't need to consider these in Anaconda.

At the same time, Anaconda also bundles two very useful interactive code editors (Spyder, Jupyter notebook).

In short, using Anaconda is much more convenient than installing Python separately. After one set is installed, we have a Python interpreter and a Jupyter Notebook editor, so we can start learning directly.

In the later part of machine learning, many people use Jupyter Notebook.

3. Installation steps

3.1 Download and install

First download Anaconda on the official website, click me to go to the download address of Anaconda official website , and then the following is the place to pay attention to, just click Next in other places.

  • <1> Choose to install for all users

  • <2> Check two environment variable options (select both, but only one is checked on the way, which is inappropriate)

  • <3> Do not check the two learn

3.2 Configure conda source

This step is very important! Because Anaconda's download source is abroad by default, if you don't configure our domestic source, the download speed will be so slow that you doubt your life. And many times it will lead to network errors and download failures.

The configuration method is as follows:

  • <1> Open Anaconda Promptand execute the following command to add the Tsinghua image 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
  • <2> Then we enter the conda info command to check the current channel and check whether the configuration is successful.
conda info
  • <3> Check whether the installation is successful

epilogue

This article mainly explains the installation and use of Anaconda. It is the first article of the author's [Python Data Analysis Column] . Starting with this, I will study with you.

Guess you like

Origin blog.csdn.net/qq_62592360/article/details/131500745