반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- string
- math
- PySpark
- Google Excel
- Github
- django
- Excel
- dataframe
- Java
- Mac
- numpy
- PANDAS
- Python
- Tkinter
- array
- GIT
- Redshift
- matplotlib
- SQL
- list
- hive
- Google Spreadsheet
- gas
- 파이썬
- google apps script
- c#
- Kotlin
- Apache
- PostgreSQL
Archives
- Today
- Total
달나라 노트
Python Basic : where python (Python 설치 경로. Python interpreter 설치 경로) 본문
Python/Python Basic
Python Basic : where python (Python 설치 경로. Python interpreter 설치 경로)
CosmosProject 2021. 9. 16. 23:20728x90
반응형
Python을 사용하기 위해선 반드시 Python이 설치되어있어야 합니다.
Terminal $ where python
-- Result
/Users/opt/anaconda3/bin/python
/usr/bin/python
terminal을 열고 where python이라는 명령어를 입력하면 위처럼 Python이 설치된 경로를 알 수 있습니다.
저는 일반 Python과 anaconda python을 모두 설치해놔서 2가지 결과가 보입니다.
Terminal $ python /Users/Code/main.py
Python file을 terminal에서 실행하려면 위처럼 python file.py의 형태로 명령어를 입력하게 됩니다.
/Users/robin/opt/anaconda3/bin/python /Users/Code/main.py
/Users/robin/opt/anaconda3/bin/python /Users/Code/main.py
/usr/bin/python /Users/Code/main.py
근데 위처럼 python 대신 Python interpreter가 설치된 경로를 적어주면 어떤 python interpreter를 사용하여 python file을 실행할지 정할 수도 있습니다.
728x90
반응형
'Python > Python Basic' 카테고리의 다른 글
Comments