python path 썸네일형 리스트형 [draft] 우분투에서 python 명령어를 사용할 수 있도록 설정하는 방법 우분투에서 python 명령어를 사용할 수 있도록 설정하는 방법테스트 환경$ lsb_release -dDescription: Ubuntu 24.04.1 LTS시스템에 python 명령어가 설정되어 있지 않다는 메시지 출력$ python --versionCommand 'python' not found, did you mean: command 'python3' from deb python3 command 'python' from deb python-is-python31. 기본 설치 확인우분투에서는 기본적으로 python3가 설치되어 있습니다. 하지만 python 명령어는 별도로 설정하지 않으면 사용할 수 없습니다. python3가 설치되어 있는지 확인합니다.python3 --versionPython.. 더보기 python 모듈 탐색 경로 찾기 python 모듈 탐색 경로 찾기 테스트 환경 $ python --version Python 3.9.13 파이션 3.9의 sys.path 값 - 임포트할 모듈 경로 python import sys for place in sys.path: print(place) $ python Python 3.9.13 (main, Aug 7 2022, 01:19:39) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> for place in sys.path: ... print(place) ... /opt/homebrew/Cella.. 더보기 이전 1 다음