其他分享
首页 > 其他分享> > debain安装Anaconda

debain安装Anaconda

作者:互联网

debain安装Anaconda

使用wget或curl下载Anaconda安装脚本

https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh

wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

sha256sum /tmp/Anaconda3-2019.10-Linux-x86_64.sh

确保上面命令中打印的哈希值与您要安装的Anaconda版本在64位Linux页面上的Anaconda with Python 3上可用的哈希值匹配。

46d762284d252e51cd58a8ca6c8adc9da2eadc82c342927b2f66ed011d1d8b53 /tmp/Anaconda3-2019.10-Linux-x86_64.sh

https://docs.anaconda.com/anaconda/install/hashes/lin-3-64

运行脚本以启动Anaconda安装过程

sh /tmp/Anaconda3-2020.11-Linux-x86_64.sh

按ENTER继续,然后按SPACE滚动浏览许可证,审查完许可后,系统会提示你接受许可条款

键入yes接受许可证,脚本将要求你选择安装位置

Anaconda3 will now be installed into this location:
/home/linuxize/anaconda3

 - Press ENTER to confirm the location
 - Press CTRL-C to abort the installation
 - Or specify a different location below

键入yes,按ENTER,脚本将conda添加到你的PATH

要激活Anaconda安装,请使用以下命令将由installer添加的新PATH环境变量加载到当前会话中:

source ~/.bashrc
conda info

更新Anaconda

更新Anaconda是一个相当直接的过程,首先使用:更新conda工具:

conda update conda

更新conda后,继续Anaconda更新:

conda update anaconda

before相同,当提示时,键入y继续。

卸载Anaconda

要从Debian系统上卸载Anaconda,请首先删除安装Anaconda的目录:

rm -rf ~/anaconda3

编辑/.bashrc文件,然后从PATH环境变量中删除Anaconda目录:/.bashrc

运行以下rm命令以从用户主目录中删除隐藏的文件和文件夹:

rm -rf ~/.condarc ~/.conda ~/.continuum

创建Python环境

conda info --env看看环境

conda env list

conda env remove -n py3

conda create --name python38 python=3.8

source activate py3

标签:Anaconda3,Linux,debain,sh,conda,Anaconda,64,安装
来源: https://blog.csdn.net/casn_d/article/details/112424709