当前位置: 代码网 > 服务器>服务器>Linux > linux安装miniconda3实践过程

linux安装miniconda3实践过程

2026年03月23日 Linux 我要评论
1、下载下载地址:https://docs.conda.io/en/latest/miniconda.html清华软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/

1、下载

注意:一定要认准版本,最好不要下载miniconda,建议下载miniconda3.

2、安装

下载完成后

miniconda3-latest-linux-x86_64.sh

运行

**bash miniconda3-latest-linux-x86_64.sh**
**一直点击inter**
miniconda3-latest-linux-x86_64.sh
[wodedev@wodedev4 ~]$ bash miniconda3-latest-linux-x86_64.sh 

welcome to miniconda3 4.7.12

in order to continue the installation process, please review the license
agreement.
please, press enter to continue
>>> 
===================================
miniconda end user license agreement
**输入yes继续**
do you accept the license terms? [yes|no]
[no] >>> 
please answer 'yes' or 'no':'
>>> 

安装完成,可以及时激活

installation finished.
do you wish the installer to initialize miniconda3
by running conda init? [yes|no]
[no] >>> yes

​查看是否配置是否更新

conda --verson

若未更新则,更新配置

source ~.bashrc

再次查看版本

conda --verson

成功则ok

查看已安装依赖

conda list

创建环境

conda create -n pyhton3 python=3.6

其中python3为环境名称

激活环境

source activate python3

安装依赖

conda install ***
pip install *** 

两种均可以,但是经验看pip更方便

卸载miniconda

找到miniconda3的文件夹,使用rm命令将它删除:

  • 然后,用vim命令进入.bashrc文件,将conda的语句用#注释掉
  • 最后,重新激活一下source .bashrc就可以了。

​总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2026  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com