본문 바로가기
목차
Docker

[도커] 파이썬 설치

by 지각생 2022. 5. 20.
728x90

https://senticoding.tistory.com/59

 

리눅스에서 파이썬 환경 구축하기 (Docker를 이용해 테스트)

문제상황 리눅스를 쓰면서 sudo apt-get install sudo apt install curl url wget url make filename 등등 다양한 방법을 통해 package를 install 해왔다. 하지만, 무분별하게 닥치는 대로 install 해나가다보니 p..

senticoding.tistory.com

apt install -y python python3 python3-distutils curl &&
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py &&
    python3 get-pip.py &&
    python2 get-pip.py &&
    rm get-pip.py
    
cd /usr/bin
rm python
ln -s python3 python

python --version &&
    python2 --version &&
    pip --version &&
    pip2 --version

 

파이썬 설치후 torch 설치 중임

728x90

댓글