Dev tip: set terminal:integrated:Inherit Env to False to let the terminal work well for virtual env
When you use vscode terminal, sometimes you may meet that the terminal does not work well with virtual environment, such as env and conda. The terminal may walk into the env automatically by choosing the right python interpreter. However, the python is inherited from root, not from the virtual env. So by the reminder of vscode itself, we could set terminal:integrated:Inherit Env to False to avoid the issue.
terminal setting |
Comments
Post a Comment