Linux在当前用户安装miniconda,配置并使用conda命令

Miniconda的安装界面可以参考:https://docs.conda.io/en/latest/miniconda.html

比如希望安装python3.8对应的linux版本,则需要运行命令:

wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.5.2-0-Linux-x86_64.sh
sh Miniconda3-py38_23.5.2-0-Linux-x86_64.sh

一路回车,最后许可证展示完成后输入yes,然后选择安装目录,默认是/home/用户名/miniconda3,回车后安装完成

然后添加miniconda到当前环境:

vim ~/.bashrc

写入:

export PATH=/home/用户名/miniconda3/bin:$PATH
source ~/.bashrc
conda --version

猜你喜欢

转载自blog.csdn.net/weixin_35757704/article/details/132402627
今日推荐