1、下载
- 下载地址:https://docs.conda.io/en/latest/miniconda.html
- 清华软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
注意:一定要认准版本,最好不要下载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就可以了。
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。
发表评论