For me three steps helped with this problem
uninstall vs code
install pycharm
use always a venv (default in pycharm)