linux安装miniconda3实践过程

 更新时间:2026年03月23日 09:51:53   作者:sonia_liss  
这篇文章主要介绍了linux安装miniconda3实践过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教

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就可以了。

​总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

相关文章

最新评论