最近用sublime3調試python3發現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。