에러 노트
[Python] /bin/sh: python: command not found vscode.
2021bong
2022. 10. 21. 18:52
python은 설치되어있고 python --version 명령어를 실행하면 버전은 잘나온다. 그리고 환경변수 PATH 설정까지 해줬다. 그런데 vscode에서 run을 하면 에러가 떴다.
/bin/sh: python: command not found vscode
이유
python과 python3은 다른가보다 vscode가 그걸 인식을 못해서 그런 것 같다. vscode setting.json에 코드를 추가해주니 동작했다.
"python.pythonPath": "python3",
"code-runner.executorMap": {
"python": "/usr/bin/python3"
}
728x90