在vscode的用户首选项中加入以下内容:

"python.envFile": "${env:HOME}/.bashrc"