1. Anaconda 사이트, sh파일 다운 (download anaconda.sh file)
bash Anaconda3-2019.10-Linux-x86_64.sh #setup ->yes
source ~/.bashrc
conda --version #check the version of anaconda
2. creating conda virtual environment(가상환경 생성)
conda search python
conda create -n test python==3.7 #conda create -n(생성) test(가상환경명, virtual environment name), python version
conda info --envs #check environment
conda activate test #conda activate 가상환경명(virtual environment name)
conda deactivate #가상환경 비활성화
3. setup pip, tensorflow, keras, pytorch 설치(setup)
pip install --upgrade pp
pip install tensorflow
pip install --upgrade tensorflow==1.5.0 #1.5.0으로 다운그레이드, downgrade
tensorflow 1.5.0
tensorflow-estimator 2.0.1
tensorflow-tensorboard 1.5.1
pip install keras
pytorch 사이트에서 쿠다 버전 확인(checking cuda version in pytorch site)
conda install pytorch torchvision torchaudio cudatoolkit=10.1 -c pytorch (cuda 10.1 기준, conda 사용)
'Major > python' 카테고리의 다른 글
setup library on pycharm #파이참에서 라이브러리 설치(numpy, scipy...etc) (0) | 2017.12.11 |
---|---|
python numpy install, 파이썬 numpy 쉽게 설치하기 (0) | 2017.12.11 |