태그 보관물: anaconda

anaconda

Ubuntu에 Anaconda를 설치하는 방법은 무엇입니까? 대한 명령

Ubuntu에 Anaconda for Python 을 설치하는 방법은 무엇입니까?

사용하는 방법이 apt-get install있습니까?

내 서버에 대한 명령 줄 액세스 권한 만 있습니다. 커맨드 라인에서 Ubuntu 14.04에 Anaconda를 어떻게 설치합니까?



답변

자세한 내용은 Anaconda Hompepage를 참조하십시오 !

설치 방법 [Linux 설치]

이 지시 사항은 Linux 시스템에 Anaconda를 설치하는 방법을 설명합니다.

Anaconda 설치 프로그램을 다운로드 한 후 터미널에서 다음 명령을 실행하십시오.

$ bash Anaconda-2.x.x-Linux-x86[_64].sh

라이센스 조건에 동의하면 설치 위치 (기본값은 ~/anaconda) 를 지정하라는 메시지가 표시됩니다 .

참고 : Anaconda를 설치하기 위해 루트 권한이 필요하지 않습니다 ~/anaconda.*. 자체 추출이 완료된 후 와 같이 사용자 쓰기 가능 설치 위치를 선택한 경우 아나콘다 바이너리 디렉토리를 PATH 환경 변수에 추가해야합니다.

모든 Anaconda가 단일 디렉토리에 포함되어 있으므로 Anaconda를 쉽게 제거 할 수 있습니다 (전체 설치 위치 디렉토리를 제거하기 만하면 됨).


문제가 발생하면 바이러스 백신 소프트웨어를 비활성화하십시오. 리눅스 / OS X 제거

모든 Anaconda가 단일 디렉토리에 포함되어 있으므로 Anaconda 제거는 간단합니다 (전체 설치 위치 디렉토리를 제거하기 만하면 됨).

$ rm -rf ~/anaconda

답변

wget명령 줄에서 다운로드 하는 데 사용할 수 있습니다 .

Python3의 경우 :

  • 32 비트 버전 :

    wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86.sh
  • 64 비트 버전

    wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh

그리고 다운로드가 완료된 후 :

  • 32 비트 :

    bash Anaconda-5.3.1-Linux-x86.sh
  • 64 비트 :

    bash Anaconda3-5.3.1-Linux-x86_64.sh

Python2를 사용하는 사용자의 경우 Anaconda 바로 다음의 “3”을 2로 변경해야합니다.

출처 : https://conda.io/docs/user-guide/install/linux.html


답변

여기에 아무도 설명 apt-get하지 않았으며 다른 패키지 관리자에게는 아나콘다 용 패키지가 없습니다.

중요한 이유는 아나콘다가 어떤 이유로 든 루트 권한이없는 사용자가 사용할 수 있기 때문입니다. 이 경우 사용자는에 설치하고 ~/anaconda자신 PATHPYTHONHOME변수를 변경 하여 실행 ~/anaconda/python하고 개인 파이썬 배포를 제어 할 수 있지만 “시스템”파이썬을 수정하려면 관리자의 도움이 필요할 수 있습니다.

패키지 관리자는 항상 sysadmin 권한이 필요합니다.


답변

커맨드 라인에서 완전히 시도한다면 bash 스크립트
python 2 anaconda install bash script를 사용하십시오 .

# 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

# Reload default profile
source ~/.bashrc

conda update conda

python 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

# Reload default profile
source ~/.bashrc

conda update conda

출처 : https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a


답변

@Vivek의 답변 외에도 최신 python3 64 비트 Linux 버전을 얻으려면 :

CONTREPO=https://repo.continuum.io/archive/
# Stepwise filtering of the html at $CONTREPO
# Get the topmost line that matches our requirements, extract the file name.
ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d \" -f 2)
wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
bash ~/Downloads/anaconda.sh

grep물론 라인 3 의 필터는 요구 사항에 맞게 변경할 수 있습니다.

Q : 여기서 무슨 일이 일어나고 있습니까?

  • wget -q -O - URL조용히 ( -q)에서 html을 가져오고 URL(이 경우 https://repo.continuum.io/archive/ 로 액세스 $CONTREPO)이를 표준 출력 ( -O -)으로 보냅니다 .
  • | “pipe”라고하며 이전 명령의 출력을 다음 명령으로 보냅니다.
  • grep "text"를 포함하는 입력에서 행을 반환합니다 text. 먼저 “Anaconda3″가 포함 된 모든 줄을 선택한 다음 “Linux”가 포함 된 모든 줄과 “86_64″가 포함 된 모든 줄 (64 비트 버전)을 선택합니다.
  • head -n 1입력의 첫 줄을 반환합니다. 최신 버전이 위에 오도록 순서를 유지하면서 웹 사이트를 사용합니다.
  • cut -d \" -f 2-d \"HTML의 href에서 파일 이름을 둘러싸 는 큰 따옴표 문자 ( )로 입력을 분할하고 href -f 2의 대상인 두 번째 필드 ( )를 반환합니다 .

답변

완전한 설치를 위해이 비디오를보십시오

연속체에서 Anaconda를 다운로드하십시오.

Python 3.6 버전을 설치하려면

sudo bash Anaconda3-4.3.0-Linux-x86_64.sh 

Python 2.7 버전

 sudo bash Anaconda2-4.3.0-Linux-x86_64.sh

네비게이터 실행

anaconda-navigator

Spyder IDE 실행

spyder

Jupyter Notebook 실행

jupyter-notebook

답변

이 단계를 따르세요:

  1. export PATH="~/anaconda/bin:$PATH"
  2. 그런 다음 다음을 사용하여 업데이트 할 수 있습니다.

    conda update conda
    conda update anaconda