SublimeREPL 调用ipython出错

最近用sublime3调试python3发现SublimeREPL 的ipython没法调用,报错以下SublimeREPL 调用ipython出错python

D:\linux\python37\lib\site-packages\IPython\config.py:13: ShimWarning: The `IPython.config` package has been deprecated since IPython 4.0. You should import from traitlets.config instead.
  "You should import from traitlets.config instead.", ShimWarning)
D:\linux\python37\lib\site-packages\IPython\terminal\console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated since IPython 4.0. You should import from jupyter_console instead.
  "You should import from jupyter_console instead.", ShimWarning)
D:\linux\python37\lib\site-packages\IPython\frontend.py:21: ShimWarning: The top-level `frontend` package has been deprecated since IPython 1.0. All its subpackages have been moved to the top `IPython` level.
  "All its subpackages have been moved to the top `IPython` level.", ShimWarning)
D:\linux\python37\lib\site-packages\IPython\terminal\console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated since IPython 4.0. You should import from jupyter_console instead.
  "You should import from jupyter_console instead.", ShimWarning)
Traceback (most recent call last):
  File "C:\Users\chinantfy\Desktop\Sublime Text 3207 x64\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 45, in <module>
    from IPython.frontend.terminal.console.app import ZMQTerminalIPythonApp
ModuleNotFoundError: No module named 'IPython.fronte
nd.terminal.console.app'; 'IPython.frontend.terminal.console' is not a package

***Repl Closed***```

百度发现解决办法
https://blog.csdn.net/qq_39546227/article/details/88596203
具体方法就是
1.打开ST3,点击Preferences -> Browse Packages
2.在弹出窗口中选择目录:SublimeREPL -> config -> Python,打开目录下的 “Main.sublime-menu” 文件,打开方式能够选择ST3。
3.关键: 将鼠标移至大概71行的位置(这里只针对windows操做系统,其余系统相似),把内容更改成Python中ipython3.exe的路径,我这里是 “Python-3.7.2/Scripts/ipython3.exe” 。若是是用Anaconda3下载的Python环境,在 “Anaconda3/Scripts” 目录下应该有ipython3.exe。更改后保存配置,便可顺利运行IPython。
相关文章
相关标签/搜索