리눅스(페도라) Python 설치
사용 버전: 페도라 31 Workstation
페도라를 처음 설치하게 되면, Python이 자동으로 설치되어 있습니다.

만약 자기가 사용해야 하는 파이썬 버전이 다르다면, 다시 설치해야 할 텐데요. 오늘은 그것을 해보겠습니다.
저는 기존에 Python은 유지하면서 다른 버전을 설치하겠습니다.
저는 Python 3.5 버전을 설치해보겠습니다.
sudo dnf install [설치할 python 버전]

이렇게 설치할 프로그램을 보여줍니다. y를 누릅니다.

설치가 완료됩니다.

설치한 버전의 python을 실행할 때에는 python3.5라고 버전을 명시해줍니다.

새롭게 설치한 버전으로 pip를 실행하여 모듈을 설치하려고 하면, 이러한 오류가 나옵니다.

이유는 pip가 설치되지 않아서인데요. 오늘은 pip 설치까지 같이 해보겠습니다.
설치법입니다.

터미널에 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py를 입력합니다.

그리고, [파이썬 버전] get-pip.py를 입력합니다.

이제, 다시 pip를 이용해서 numpy를 받아보겠습니다.

짜잔, 리눅스(페도라)에 원하는 파이썬을 설치해 보았습니다.
끝.
리눅스(Linux) 페도라(Fedora) 파이썬(Python) 설치에 대해서 알아보겠습니다.
페도라를 처음 설치하게 되면, Python이 자동으로 설치되어 있습니다.

만약 자기가 사용해야 하는 파이썬 버전이 다르다면, 다시 설치해야 할 텐데요. 오늘은 그것을 해보겠습니다.
저는 기존에 Python은 유지하면서 다른 버전을 설치하겠습니다.
저는 Python 3.5 버전을 설치해보겠습니다.
sudo dnf install [설치할 python 버전]

이렇게 설치할 프로그램을 보여줍니다. y를 누릅니다.

설치가 완료됩니다.

설치한 버전의 python을 실행할 때에는 python3.5라고 버전을 명시해줍니다.

새롭게 설치한 버전으로 pip를 실행하여 모듈을 설치하려고 하면, 이러한 오류가 나옵니다.

이유는 pip가 설치되지 않아서인데요. 오늘은 pip 설치까지 같이 해보겠습니다.
설치법입니다.

터미널에 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py를 입력합니다.

그리고, [파이썬 버전] get-pip.py를 입력합니다.

이제, 다시 pip를 이용해서 numpy를 받아보겠습니다.

짜잔, 리눅스(페도라)에 원하는 파이썬을 설치해 보았습니다.
끝.
카테고리: Linux, Fedora
댓글
댓글 쓰기
궁금한 점은 댓글 달아주세요.
Comment if you have any questions.