![](/img/trans.png)
[英]Visual Studio Code - ModuleNotFoundError, different sys.path in terminal and VSCode?
[英]VSCode Terminal alters the $PATH
我在macOS上安装了coreutils,其中/ usr / local / opt / coreutils / libexec / gnubin前置在常规终端中可以使用的路径。
当我使用VSCode终端时,它将/ bin附加到$ PATH之前,这会中断GNU coreutils的使用。 为什么这样做,以及如何阻止它更改$ PATH?
找到解决方案后,默认设置为:
"terminal.integrated.shellArgs.osx": [
"-l"
],
需要用一个空列表覆盖它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.