Import 'bs4' and 'requests' could not be resolved from sourcePylancereportMissingModuleSource

preview_player
Показать описание
Import "requests" could not be resolved from sourcePylancereportMissingModuleSource
Import "bs4" could not be resolved from sourcePylancereportMissingModuleSource

pip install beautifulsoup4

pip install requests

Рекомендации по теме
Комментарии
Автор

I have been trying to resolve this problem for two days. Everything I tried caused other problems. I had been using the "recommended" version of Python in VSCode (Python 3.12.0). I switched to a different version like you suggested (Python 3.8.2rc2) and the problem was fixed immediately. Thanks so much for posting this solution so I can get back to learning.

ElectroCoding