linux 下安装Anaconda环境和简单使用
一、Anacanda各种版本下载地址:
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
二、 运行脚本
# bash Anaconda3-5.1.0-Linux-x86_64.sh
Welcome to Anaconda3 5.1.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
#按回车键
Do you accept the license terms? [yes|no]
[no] >>> yes
#输入yes 按回车键
Anaconda3 will now be installed into this location:
/root/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/root/anaconda3] >>>
PREFIX=/root/anaconda3
#按回车键
installing: _ipyw_jlab_nb_ext_conf-0.1.0-py36he11e457_0 ...
installing: jupyter-1.0.0-py36_4 ...
installing: anaconda-5.1.0-py36_2 ...
installing: conda-4.4.10-py36_0 ...
installing: conda-build-3.4.1-py36_0 ...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>> yes
#按回车键
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no
#输入no 按回车键
三、配置环境变量
#source ~/.bashrc
#查看conda的版本
#conda --version
conda 4.4.10
安装一个python3.8的环境py
conda create --name py38 python=3.8
#切换到py38的环境中
source activate py38
# 查看当前的conda 环境
# conda info -e
# conda environments:
#
base /root/anaconda3
py38 * /root/anaconda3/envs/py38
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
二、 运行脚本
# bash Anaconda3-5.1.0-Linux-x86_64.sh
Welcome to Anaconda3 5.1.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
#按回车键
Do you accept the license terms? [yes|no]
[no] >>> yes
#输入yes 按回车键
Anaconda3 will now be installed into this location:
/root/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/root/anaconda3] >>>
PREFIX=/root/anaconda3
#按回车键
installing: _ipyw_jlab_nb_ext_conf-0.1.0-py36he11e457_0 ...
installing: jupyter-1.0.0-py36_4 ...
installing: anaconda-5.1.0-py36_2 ...
installing: conda-4.4.10-py36_0 ...
installing: conda-build-3.4.1-py36_0 ...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>> yes
#按回车键
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no
#输入no 按回车键
三、配置环境变量
#source ~/.bashrc
#查看conda的版本
#conda --version
conda 4.4.10
安装一个python3.8的环境py
conda create --name py38 python=3.8
#切换到py38的环境中
source activate py38
# 查看当前的conda 环境
# conda info -e
# conda environments:
#
base /root/anaconda3
py38 * /root/anaconda3/envs/py38
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!