我一直在使用atom 1.36.1
运行python3
(3.7.3)代码
我突然收到以下错误信息
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals)
File "/usr/local/lib/python3.7/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/local/lib/python3.7/site-packages/ipykernel/init.py", line 2, in from .connect import *
File "/usr/local/lib/python3.7/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir
File "/usr/local/lib/python3.7/site-packages/IPython/init.py", line 54, in from .core.application import Application
File "/usr/local/lib/python3.7/site-packages/IPython/core/application.py", line 18, in import logging
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/init.py", line 28, in from string import Template ImportError: cannot import name 'Template' from 'string' (/Users/mymac/Downloads/string.py)
这是 jupyter 内核 json 文件的内容:
{
"argv": [
"/usr/local/Cellar/python/3.7.3/bin/python3",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
}
我究竟做错了什么?