ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • ubuntu 에 Python3 설치
    Python 2017. 5. 16. 22:24



    ubuntu-16.04.2-desktop-amd64 로  우분투를 설치하니 

    디폴트로 파이썬이 설치되어있긴했는데 버전이 2.7 이라 

    난 python3 이 필요한 상황이므로  python3 을 다운받아 설치하기로한다. 


    다운로드


    #> wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz

    #> tar -xvf Python-3.6.1.tgz

    #> cd  Python-3.6.1/


    root 권한으로 전환 후 

    #> sudo su - 

    #> ./configure --with-zlib=/usr/include

    #> make; make install;


    제길슨... 이렇게는 직접 다운받아서는  설치가 안되나 보다... ㅠㅠ 

    계속 can't decompress data; zlib not available ... 이런 메시지를 찍으면 실패  OTL...



    https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get

    sudo add-apt-repository ppa:jonathonf/python-3.6 
    sudo apt-get update 
    sudo apt-get install python3.6
    

    이렇게 하니 설치가 된다.  


    근데 다 하고 보니  3.6 버전이 아니라면 굳이 이렇게 설치할필요도 없이 이미 설치되어있는 상황임을 깨닫게 됨 -_-;; 






    'Python' 카테고리의 다른 글

    CentOS 6.9 에 Python 3.6 설치하기  (0) 2019.09.12
    tesseract-ocr pytesseract 설치  (3) 2017.05.19
    python3 cx_Oracle 설치  (2) 2017.05.17
    파이썬 + Django 설치  (0) 2017.04.29

    댓글

Designed by Tistory.