linux卸载minicoda2,miniconda集成环境

谭翰海
2023-12-01

miniconda

主要为python2.7提供环境,为后续添加模块更容易做准备。(非py相关开发可以不用安装)conda类似于pip一样的东西但对ANN 算法等模块的安装更容易

安装 for linux

开始安装:

sh Miniconda2-latest-Linux-x86_64.sh

提示:

Please, press ENTER to continue

>>>

输入回车

提示:

IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

--More--

输入q

提示:

Do you approve the license terms? [yes|no]

>>>

输入yes

提示:

Miniconda2 will now be installed into this location:

/root/miniconda2

- Press ENTER to confirm the location

- Press CTRL-C to abort the installation

- Or specify a different location below

[/root/miniconda2] >>>

可直接回车也可以自己输入一个安装地址比如/usr/local/miniconda2然后 回车

提示:

Do you wish the installer to prepend the Miniconda2 install location

to PATH in your /root/.bashrc ? [yes|no]

[no] >>>

直接回车即可

提示:

You may wish to edit your .bashrc or prepend the Miniconda2 install location:

$ export PATH=/usr/local/miniconda2/bin:$PATH

Thank you for installing Miniconda2!

Share your notebooks and packages on Anaconda Cloud!

Sign up for free: https://anaconda.org

[root@hadoop-ccc ~]#

这个是告诉你 需要增加一下 PATH的配置

放在/etc/profile下即可

export PATH=/usr/local/miniconda2/bin:$PATH

配置

因为主要使用的是python2.7 所以需要更改一下内容:

a.改变yum使用python2.6

[root@hadoop-aaa java]# vi /usr/bin/yum

#!/usr/bin/python2.6

b.替换系统python命令指定使用安装的python:

ln -snf /usr/local/miniconda2/bin/python /usr/bin/python

使用

检查当前conda版:

conda --version

升级conda:

conda update conda

查看已安装的包:

conda list

安装包:

conda install mysql-python python=2.7

 类似资料: