Linux为所有用户安装Miniconda

如果以root身份默认安装,后续普通用户再安装的话,是直接用不起来的,需要改些东西,所以在安装时最好全局安装,所有用户都可用

  • 获取安装包wget "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O Miniconda3-latest-Linux-x86_64.sh

  • 执行安装脚本:sudo bash Miniconda3-latest-Linux-x86_64.sh

  • 脚本安装步骤中,修改安装路径:/opt/miniconda3/

  • 安装完成后,修改权限:sudo chmod ugo+w -R /opt/miniconda3/

  • 加入环境变量:到文件,文件/etc/profile最后添加PATH=/opt/miniconda3/bin:$PATH

--------------new---------------------

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh
bash /tmp/miniconda.sh -b -p /usr/local/miniconda
echo 'export PATH="/usr/local/miniconda/bin:$PATH"'>/etc/profile.d/conda11.sh
source /etc/profile.d/conda.sh
conda init
source ~/.bashrc
conda --version

本文作者:秒年度

本文链接:https://www.cnblogs.com/steinven/p/16190464.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   秒年度  阅读(1705)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起