MrLonely
V2EX  ›  问与答

VS Code 的设置突然就不对了?

  •  
  •   MrLonely · Oct 20, 2020 · 1270 views
    This topic created in 2032 days ago, the information mentioned may be changed or developed.

    我在本地 Mac 上打开一个.py 文件,然后点右上角 run code,下面就会出现 terminal 和这样的命令行

    /bin/python3 "/path/to/python.py" 就运行成功了

    但是同样的文件我还有在云端放了一个,用的是 VS Code Remote,之前一直都好好的,就今天突然变了。点右上角的 run code 自动弹出来的是 terminal 左边的 output,然后里面会写着

    [Running] python -u "/path/to/python.py" Traceback (most recent call last): File "//path/to/python.py", line 1, in <module> import quandl ImportError: No module named quandl

    [Done] exited with code=1 in 0.754 seconds

    这个时候我如果再手动点右边的 terminal tab,输入 python3 ./python.py 又是可以运行的,感觉上像是我修改了 Remote 上的某些配置选项,但是实际上并没有动过任何东西呀。

    求助各位大佬,怎么办?

    1 replies    2020-10-20 09:51:36 +08:00
    MrLonely
        1
    MrLonely  
    OP
       Oct 20, 2020
    自问自答吧,经过多方搜索,发现 output tab 跟一个云端装了的 Code Runner 插件有关系。我也不知道什么时候不小心装的。插件删了就好了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5537 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 08:23 · PVG 16:23 · LAX 01:23 · JFK 04:23
    ♥ Do have faith in what you're doing.