SublimeREPL 調用ipython出錯

最近用sublime3調試python3發現SublimeREPL 的ipython無法調用,報錯如下SublimeREPL 調用ipython出錯


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。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章