You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code创建专属IPython终端时提示“ipython未被识别”的问题求助

VS Code创建专属IPython终端时提示“ipython未被识别”的问题求助

几个月前我把Spyder换成了VS Code,主要原因之一是它能集成Jupyter笔记本(作为插件),而且调试功能看起来更强大。另外我感觉包管理器uv(当时正想尝试这个工具)在VS Code的终端里用起来更顺手——顺便说一句,uv真的挺好用的。

我已经习惯了Spyder的工作流和它的IPython集成(比如按F5运行整个文件,F9执行选中的代码之类的),所以想继续用这种方式写代码。VS Code里的IPython插件确实能满足我的需求,那段时间VS Code、IPython和uv配合得特别好,我还挺满意的。

但不知道为啥,几天前这套配置突然出问题了,我完全找不到原因。现在每次尝试创建一个新的专属IPython终端时,终端里都会弹出下面的错误提示:

注:以下是德语的错误输出

PS C:\Users\path_to_code> ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext autoreload" --InteractiveShellApp.exec_lines="%autoreload 2"
ipython : Die Benennung "ipython" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad 
korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
+ ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext a ...
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ipython:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我把它翻译成英文大概是这样:

PS C:\Users\path_to_code> ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext autoreload" --InteractiveShellApp.exec_lines="%autoreload 2"
ipython : The term 'ipython' was not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name and make sure that the path, 
if any, is correct, and then try the operation again.
In line:1 char:1
+ ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext a...
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (ipython:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

我的系统是Windows,有没有人用类似的配置,也遇到过这个问题呀?

备注:内容来源于stack exchange,提问作者gruenkohl

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 11:18:08