Anaconda and use of Ubuntu (virtual machine)

Install Anaconda

Use firefox to open the Ananconda website Anaconda | The World's Most Popular Data Science Platform

There is a .sh file after downloading:

Anaconda3-2022.10-Linux-x86_64.sh

Enter the directory where you are, open the terminal and enter

$ bash Anaconda3-2022.10-Linux-x86_64.sh

Then start the installation.

Enter "yes" "yes" for the installation prompt given,

Press "enter" when prompted

 You can install sklearn according to the prompt.

Finally installed.

$ source ~/.bashrc

Next enter conda list

 Check:

conda

 

conda --version

 

conda info

 


Open the terminal under the bin folder and enter          ./spyder

 


Type anaconda-navigator     

 

 

Create an icon:

Enter    sudo gedit

"一旦您以管理员身份打开 gedit,在您关闭程序前,它将一直具备管理员权限。
gedit是一款编辑器"
'下面是配置文件'
--------------------------------------------------------------------------------------------------------------------------
[Desktop Entry]
Version=1.0
Name=Anaconda
Type=Application
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/<user>/anaconda3/bin:$PATH" && /home/<user>/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/<user>/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;

Save as:

/usr/share/applications/

named:

Anaconda.desktop

 

Reference article:

Ubuntu installs Anaconda tutorial, if you can't start it, look here + create Anaconda desktop icon - Programmer Sought

Anaconda virtual environment management, no need to worry about Python version from now on

Install anaconda under ubuntu and run

Guess you like

Origin blog.csdn.net/m0_72572822/article/details/129221263
Recommended