IT/programming

Import "selenium" could not be resolved Pylance error

나령 윤기도 2023. 9. 18.

1.Error ▶  Import "selenium" could not be resolved Pylance (reportMissingImports).

VS 코드에서 파일을 편집하고 있습니다. VS 코드는 다음 오류를 발생시킵니다:

Import "selenium" could not be resolved Pylance (reportMissingImports).

 

❇️❇️해결방법❇️❇️


VS 명령 팔레트를 엽니다(Windows의 경우 Ctrl+Shift+P 사용).
"Python: 인터프리터 선택"을 선택하거나 입력합니다.
OS의 기본 Python 버전(C: 드라이브 확인) 또는 Selenium을 설치한 Python 버전을 선택합니다.

 

2. Error ▶  ModuleNotFoundError: No module named 'bs4'

 

❇️❇️해결방법❇️❇️


ctrl + shift + X
bs4 설치하면 해결됨

댓글