- 에러 메시지 
"Python is not installed." Please download and install Python before using the extension. 
    - 증상 
파이썬 코드가 제대로 정상 작동하고 모듈도 설치되어 있는데도
Import "numpy" could not be resolved  Pylance(reportMissingImports)  
의 에러 메시지 발생하고,  
또 Visual Studio Code 실행후에 Python 파일을 로드하면 파이썬이 설치되어 있지 않다고 에러 메시지 발생하는 상황 
    - 원인 
파이썬을 버전을 변경하고 이전 폴더가 없어진 경우(또는 비정상 삭제) 
VS Code의 Python Extension이 제거된 파이썬 폴더를 찾고 있는 상황 
    - 해결 방법1
VS Code의 Python Extension을 재설치(제거후 설치) 
//-----------------------------------------------------------------------------
방법2 
vs code 설정 - Python: Select Interpreter 
https://code.visualstudio.com/docs/python/python-tutorial#_select-a-python-interpreter
Command Palette (Ctrl+Shift+P)  
-> Select Interpreter 입력 후 선택  
-> Python 경로 선택
'Code > Python' 카테고리의 다른 글
| [Python] 구글 코랩 사용법 (0) | 2023.02.15 | 
|---|---|
| [Python] 주피터 노트북(Jupyter Notebook) 사용법 (0) | 2023.02.15 | 
| [Python] AnaConda 사용법 , 환경변수 설정 (0) | 2022.07.25 | 
| [Linux] update-alternatives 명령 (php, python 버전 관리) (0) | 2022.05.04 | 
| Python GUI (0) | 2022.04.21 | 



