나의 발자취
맥 기본 파이썬 변경하기~ 본문
Liaui-MacBookPro:~ ria$ touch ~/.bash_profile #bash_profile터치
Liaui-MacBookPro:~ ria$ open ~/.bash_profile #bash_profile 열면 수정가능한 창이 열림
Liaui-MacBookPro:~ ria$ source ~/.bash_profile #line10~14까지 입력해준 후 저장하고 끔, source명령으로 저장해주기
Liaui-MacBookPro:~ ria$ python --version #버전 확인
Python 3.8.3 #성공
alias python="python3" #python3 명령을 그냥 python으로 지정
# Setting PATH for Python 3.8
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
'computer language > Python' 카테고리의 다른 글
파이썬 extend() 메서드 (0) | 2023.06.30 |
---|---|
~3장 파이썬 정리 (0) | 2021.06.15 |
파이썬 pygame 실행했는데 내용 안뜰때 (0) | 2020.05.17 |
[Python] 파이썬 버전확인법, 파이썬 2.7 3.7 차이 (0) | 2020.05.01 |
[Python] 파이썬 gui 프로그래밍 – PyQt5, Qt Designer 설치하기 (0) | 2020.05.01 |
Comments