Install anaconda in Ubuntu environment (very simple!!!!)

Preface: I want to use tensorflow-compression, but this is not supported under windows. Then I had to install anaconda in the Ubuntu environment. but! ! ! ! ! After searching for a long time, I couldn't find a good installation tutorial. I wasted an entire afternoon and my mentality collapsed. Finally I found the video on station b. It’s actually very simple! ! ! ! ! ! ! I'm too stupid.

Install anaconda in Ubuntu environment

First go to the anaconda official website, download one randomly, and copy the link.

image-20230704175601523

Then enter under Ubuntuwget 刚才复制的链接

wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh

After the download is completed, there will be one more fileAnaconda3-2023.03-1-Linux-x86_64.sh

Install this filesh ./Anaconda3-2023.03-1-Linux-x86_64.sh

After entering the command and executing it, you will be prompted to view the license file, just press Enter. After typing Enter, the software license file will appear. This file is very long. You can keep pressing Enter to scroll to the end of the file.
After reaching the end of the license file, a prompt "Do you accept the license terms?" will appear. Enter yes and press Enter.

Quick Start with Anaconda

Then, as for the use of Anaconda, it is no different from that under windows. The following commands are commonly used.

conda create -n pytorch_gpu python=3 # 创建一个名为pytorch_gpu的环境并指定python版本为3(的最新版本
conda activate env_name  #切换到env_name环境
conda env list #列出conda管理的所有环境
conda list #列出当前环境的所有的包
conda remove -n env_name --all #删除环境
conda deactivate ##退出当前环境

Guess you like

Origin blog.csdn.net/Aure219/article/details/131540343