admin管理员组文章数量:1410674
Had an issue start with VSCode the last week or so, and not sure if there's just something wrong with my system, my vscode config, or if there's just a vscode bug.
To start, I'm running on OSx Sequoia 15.3.1. I also have Pyenv installed to help manage all the disparate python versions I'm using across my various venvs.
If I have a single folder open in my workspace, and I go to open a Terminal, the venv will activate correctly and I can proceed as normal.
However, if I have multiple folders open in the workspace, each with their own interpreter specified, When I open a terminal for one of the folders VSCode will say that the venv has been activated, but in actuality it will have failed. It will display the venv name at the start of the command prompt as if it has been activated, but running which python
will return the path of the default system interpreter. The venv has to be manually activated for things to be able to run properly.
If anyone has any ideas or thoughts as to where I can start looking, that would be a godsend.
本文标签:
版权声明:本文标题:visual studio code - VSCode Failing to properly activate venvs in workspace with more than one folderinterpreter - Stack Overflo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744949925a2634019.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论