VSCode terminal shows incorrect python version and path, launching terminal from anaconda works perfectly

后端 未结 5 715
予麋鹿
予麋鹿 2021-02-05 17:03

I have been stuck on this one problem for hours now and believe I have tried everything outside of throwing my computer out of the window.

I have a virtual environment s

5条回答
  •  甜味超标
    2021-02-05 17:29

    For Windows users:

    First if you haven't done already, set VS code (the editor, not its terminal) to the desired Python environment, using Ctrl+Shift+P --> Python: Select interpreter.

    Then, Change VS code's default terminal from Powershell to CMD. This is what worked for me at least.

提交回复
热议问题