http:https://sldofvge12.blogspot.com/2018/04/ubuntu-tensorflow-gpu-anaconda-pycharm.html
추가로 source ~/.bashrc 하면 컴퓨터 reset 필요없이 바로 적용 가능
뭔가 다운이 잘 안되면 다음을 통해 anaconda update 진행
conda update -n root conda
또는 cache 삭제
conda clean --all
만일 gcc 건드려서 문제 생기면? (libstdc++.so.6: version `CXXABI_1.3.11' not found)
conda update -f libstdcxx-ng
https://niceman.tistory.com/85
참고로 블로그와는 조금 다른게 'source'를 붙여야 하는 경우도 있다.
conda create --name pytorch python=3.6
source activate pytorch
In most cases what you want to do when you say that you want to update Anaconda is to execute the command:
conda update --all
setting --> project interpreter --> 톱니 --> add local --> /home/사용자/anaconda3/envs 에서 맞는 python 선택
https://anaconda.org/anaconda/cudatoolkit
cuda9.0, cudnn7.3, numpy, tensorflow-gpu까지 싹다 깔린다.
conda install -c anaconda cudatoolkit
https://anaconda.org/search?q=platform%3Alinux-64+pytorch
여기서 원하는 버전으로 깔면 된다. cudatoolkit이랑 버전 안맞는 것은 자동으로 딴 놈으로 downgrade
conda install -c anaconda pytorch
https://pytorch.org/get-started/previous-versions/
이전 버전에서 conda 없이 깔려면 여기서 맞는 cuda 및 python버전의 whl 파일 설치.
그 담에는 pip3 install 'whl경로' 명령어를 쳐서 설치하면 된다.
참고로 terminal 계정이 root냐 아니냐에 따라서 계정에 따른 실행 가능 상황이 달라질 수 있으니 조심.
pychram에 바로 갱신 되는 건 확인함.
https://github.com/pytorch/vision
pycharm기준 가상환경에서 pip로 설치하니깐 된다. conda로는 안되었음.
pip install torchvision
update 19.4.15
알고 보니 그냥 Conda install로 다 설치가 가능했음.
conda install torchvision
https://anaconda.org/conda-forge/matplotlib
conda로 하는 것은 쓸데없는 짓이었다. 그냥 pip로 해야 됨.
pip install matplotlib
알고 보니 그냥 Conda install로 다 설치가 가능했음.
conda install matplotlib
https://anaconda.org/anaconda/libopencv
python버전만인지, c++에서도 되는 건지는 모르겠다.
conda install -c anaconda libopencv
conda install -c anaconda py-opencv
둘 다 설치한 상태인데 누구 덕에 되는 지는 잘 모르겠다.
알고 보니 그냥 Conda install로 다 설치가 가능했음.
``` conda install opencv ```
절대 다운로드 중에는 잘못 받는 중이라도 뭘 건드리지 마라 절대.
pkg끼리 꼬이면 답도 없으며, python경우, link가 아예 broken까지 뜸