Detailed explanation of Miniconda download, installation and configuration

1. Install Miniconda


2. Download 

3. Run the installation package, and then follow each step below

 This step is the installation path, I put it in the anaconda3 folder of F:/install/anaconda3 in the F drive

This step shows that the default environment is Python3.8, check it, automatically add environment variables, and then install

Remove the ticks in the two boxes, and then Finish to complete, so far the installation is successful 

4. Test whether the installation is successful

Open the anaconda command line in the menu bar , which is Anaconda Prompt (anaconda3)

 After clicking, if you can see base in the brackets on the left side of the command line, it means the installation is successful!

 The default Python version is 3.8: enter python --version to display the default python version

So far the anaconda installation is over

5. Configure mirroring (this step can be omitted)

Open the cmd terminal command window and enter the following code

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda config --set ssl_verify false

Generate a configuration file for the .condarc application      in the user's home directory (windows: C:\users\username\, linux: /home/username/).  This configuration file is an optional runtime configuration file , which does not exist by default and will be automatically generated after executing the above command.

6. Multi-environment configuration (this step can be omitted if not required)

        If it is a multi-Python environment version, create and activate a new environment 

        Enter the installation directory, such as the envs folder  of F:/install/anaconda3/envs , and enter the cmd window execution  name, which means to create a python3.7 version and an environment named py37. Here the environment name and python version can be specified by yourself.conda create -n py37 python=3.7

After installation, the Python=3.7 environment of py37 will be generated in the envs directory

 

Conda deactivate activates the environment (cmd windows in any directory are fine)

 conda deactivate exit environment

 delete environment

conda remove -n py37 --all

 

 Delete the file package under the file envs

Guess you like

Origin blog.csdn.net/qq_41946216/article/details/129481760