python

VScode python interpreter 버전 변경

jiheek 2022. 1. 14. 15:45

파이썬 3.10버전에서 conda 가상환경을 생성할 수 없게 되었다

>> 구글링해보니 3.10버전 이상에서 conda 버그가 생긴다고 함..

 

VScode palette에서 interpreter path를 직접 지정해서 3.8버전으로 설정하면 됐다.

 

  • Interpreter Path 확인법
import os
import sys
os.path.dirname(sys.executable)

위 방법으로 파이썬 경로를 확인할 수 있다.