Anaconda 安装

Anaconda 安装

1.下载 Anaconda-*-*.sh文件(同python版本)


2.安装anaconda
bash  Anaconda3-5.2.0-Linux-x86_64.sh

进入会查看注册信息后,点击yes


指定安装目录(有默认安装目录)
Anaconda3 will now be installed into this location:
/home/jerry/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/jerry/anaconda3] >>> /usr/Anaconda

如果出现指定目录权限问题,可用sudo

sudo bash   Anaconda3-5.2.0-Linux-x86_64.sh


最后提示安装微软组件可以不安装

To install Visual Studio Code, you will need:
  - Administrator Privileges
  - Internet connectivity

Visual Studio Code License: https://code.visualstudio.com/license

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no

anacoda 解压后,安装python报错

安装:conda install python3.6
创建名为3.6的环境:conda create -name python3.6 python=3.6
激活环境:
activate python3.6 #windows
source activate python3.6 #linux and mac

python -version

返回2.7 
deactivate python3.6
source deactivate python3.6


删除一个已有的环境
conda remove --name python3.6 -all


错误:
bash: /home/xuhao/install-dir/anaconda/anaconda3/bin/conda: /server/app/anaconda3/bin/python: 解释器错误: 没有那个文件或目录

原因: 因为拉过来的包在测试环境中进行过安装,配置的conda python时测试环境的目录,需要改成本机anaconda的目录,问题解决

你可能感兴趣的:(Anaconda,Anaconda)