当前位置:网站首页>Software configuration | Anaconda download, installation, environment configuration and uninstall

Software configuration | Anaconda download, installation, environment configuration and uninstall

2022-07-23 17:22:00 MissMango0820

This paper summarizes Anaconda Installation and download of 、 Installation and environment configuration and uninstallation .

Updated: 2022 / 7 / 18



download

It is recommended to go to the official website 1 Download the corresponding version on demand .
If the current network cannot connect to the external network , You can use the mirror website , On the server side wget Web address is enough 2.

Installation and environment configuration

After downloading the source file , Enter the directory where the downloaded file is located ,

Linux

such as , At this point, you will see Anaconda3-5.3.1-Linux-x86_64.sh, Open the terminal , Input

bash Anaconda3-5.3.1-Linux-x86_64.sh

Then there will be several operations , Just follow the prompts in the terminal , As shown in the figure below :

  1. Press Enter Key to continue the installation ;
     Insert picture description here
  2. Press down enter After the key , The installation will stop temporarily , And a more The words... , You are required to read the agreement , Next, continue with multiple spaces or Q To jump over the text of the agreement ;
  3. Input yes To accept the agreement ;
     Insert picture description here
  4. Input yes To configure the system environment to initialize Anaconda;
     Insert picture description here
  5. Whether to install vscode? On demand input yes perhaps no
     Insert picture description here
    After installation , You need to exit the terminal , Enter again to enter conda command .
    Or if you don't want to quit , Input in the terminal source .bash_profile Refresh the environment variables , Input again conda command .
     Insert picture description here

Potential problems and solutions

conda: command not found

Problem description

Input in the terminal conda, But it shows that conda: command not found3.


resolvent

Input in the terminal

bash Anaconda3-5.3.1-Linux-x86_64.sh -u

To reinstall the process .
During installation , We need to pay attention to , In the 4 Step requires input yes, As shown in the figure below :

 Insert picture description here
choice yes And after installation , confirm ~/.bashrc The corresponding environment variables have been added in , As shown in the figure below :

 Insert picture description here
Input in the terminal source ~/.bashrc, Run again conda that will do .


uninstall

Please refer to here for the unloading steps 4:

  1. Delete the whole anaconda Catalog
    because Anaconda The installation files of are contained in a directory , So delete the directory directly . To include the whole anaconda Under the folder of the directory , Delete the entire directory :
rm -rf Anaconda3 The installation path 
  1. clear .bashrc Medium Anaconda route
    Open the terminal and input :
sudo gedit ~/.bashrc

stay .bashrc end of file , Delete or comment Anaconda3 Something written

# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/vision/Softwares/Anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/home/vision/Softwares/Anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/vision/Softwares/Anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/home/vision/Softwares/Anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

Save and close file

  1. Make it effective immediately , Execute at the terminal :
source ~/.bashrc
  1. Turn off the terminal , Then restart a new terminal , This is an important step , Otherwise, it is bound to the original terminal Anaconda3.

Reference link


  1. ANACONDA DISTRIBUTION

  2. Download and install two lines of code Anaconda(linux Environmental Science )

  3. ubuntu Just installed anaconda But it appears “conda: command not found”

  4. Ubuntu16.04 Next Anaconda Install and uninstall

原网站

版权声明
本文为[MissMango0820]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207231346114589.html