Sysops Notepad

[Python] Anaconda 설치 및 사용 방법 본문

업무/dev

[Python] Anaconda 설치 및 사용 방법

sysops 2018. 11. 14. 14:31

사용환경 : Linux( Centos 7.5 )

아나콘다 버전 : Anaconda2-5.3.0

Python 버전 : python 2.7.15


Anaconda 설치 방법

1. wget https://repo.continuum.io/archive/Anaconda2-5.3.0-Linux-x86_64.sh


2. chmod 755 Anaconda2-5.3.0-Linux-x86_64.sh


3. bash Anaconda2-5.3.0-Linux-x86_64.sh


4. 라이센스 동의 > 설치 경로 지정 > PATH 지정


5. source ~/.bashrc 


Anaconda  사용 방법

conda --version # 아나콘다 버전 확인


conda info --envs # 아나콘다 설치된 가상 환경 리스트


conda install package # 아나콘다 패키지 설치


conda update package # 아나콘다 패키지 업데이트


conda create --name $ENVIRONMENT_NAME $PREINSTALL_PACKAGES # 아나콘다 가상환경 생성


source activate envname


source deactivate 



Comments