ImportError: cannot import name 'InteractiveConsole' from 'code' (/PycharmProjects/PyTorch_Test/code.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): ? File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 45, in <module> ? ? from _pydevd_bundle.pydevd_comm import CMD_SET_BREAK, CMD_SET_NEXT_STATEMENT, CMD_STEP_INTO, CMD_STEP_OVER, \ ? File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 91, in <module> ? ? from _pydevd_bundle import pydevd_console_integration ? File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_console_integration.py", line 6, in <module> ? ? from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole ? File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydevd_bundle/pydevconsole_code_for_ironpython.py", line 305 ? ? exec code in self.locals ? ? ? ? ?^ SyntaxError: Missing parentheses in call to 'exec'
把.py的名字起成了code.py
换一个名字不冲突就可以了
|