简体   繁体   English

我无法在Ubuntu 14.04中安装Anaconda

[英]I can't install Anaconda in Ubuntu 14.04

After downloading Anaconda (for Python) in Ubuntu 14.04 from the website continuum.io/downloads and I click on the file file:///home/nikolokas/Downloads/Anaconda3-4.2.0-Linux-x86.s‌​h in order to execute it, an empty non-responding window opens with the file's name as a title with the extension "- gedit" and I have to force quit. 从网站continuum.io/downloads下载了Ubuntu 14.04中的Anaconda(用于Python)后,我依次单击文件://://home/nikolokas/Downloads/Anaconda3-4.2.0-Linux-x86.s‌h要执行该操作,将打开一个空的无响应窗口,该文件的名称作为标题带有扩展名“-gedit”,我必须强制退出。 The file has been saved at the Downloads. 该文件已保存在“下载”中。 The problem has nothing to do with the version of Anaconda, as I have observed. 正如我所观察到的,该问题与Anaconda的版本无关。 Can anyone help me proceed to the installation? 谁能帮助我进行安装?

On the download page, next to the download button (left) it shows how to install on Linux. 在下载页面的下载按钮(左)旁边,它显示了如何在Linux上安装。 Anaconda Download Anaconda下载

Open a terminal in the folder you downloaded the sh file and type: 在下载sh文件的文件夹中打开一个终端,然后键入:

for python 3.5 对于python 3.5

sudo bash Anaconda3-4.2.0-Linux-x86_64.sh

for python 2.7 对于python 2.7

sudo bash Anaconda2-4.2.0-Linux-x86_64.sh

Type your administrator password at the prompt then follow the instructions in the terminal. 在提示符下键入您的管理员密码,然后按照终端中的说明进行操作。

Open your terminal and copy and paste either one of the two scripts below (depending on whether you want python 2 or python 3. Basically wget downloads anaconda and the rest goes through the installation process for you. source .bashrc basically refreshes your terminal so you dont have to close and open your terminal to use the conda or python commands 打开您的终端并复制并粘贴以下两个脚本之一(取决于您要的是python 2还是python3。)基本上,wget下载anaconda,其余的将为您完成安装过程。source .bashrc基本上会刷新您的终端,因此您不必关闭并打开终端即可使用conda或python命令

python 2 anaconda install bash script : 蟒蛇2蟒蛇安装bash脚本

# Go to home directory
cd ~

# You can change what anaconda version you want at 
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda2-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc 

# Refresh basically
source .bashrc

conda update conda

python 3 anaconda install bash script 蟒蛇3蟒蛇安装bash脚本

# Go to home directory
cd ~

# You can change what anaconda version you want at 
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc 

# Refresh basically
source .bashrc

conda update conda

Source: https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a 来源: https : //medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM