ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython'
ImportError: cannot import name 'InteractiveConsole'
错误原因:有个文件夹名叫code,与系统的code冲突了:
from code import InteractiveConsole
解决方法:把code文件夹改成别的就好了。
异常如下面:
D:\Users\Administrator\Miniconda3\envs\python3.6\python.exe "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 59613 --file D:/project/track/Siamese-RPN-pytorch-master/aaa.py
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 2, in
from _pydevd_bundle.pydevd_cython import trace_dispatch, PyDBAdditionalThreadInfo, global_cache_skips, global_cache_frame_skips
ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\pydevconsole.py", line 8, in
from code import InteractiveConsole
ImportError: cannot import name 'InteractiveConsole'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\pydevd.py", line 26, in
from _pydevd_bundle.pydevd_additional_thread_info import PyDBAdditionalThreadInfo
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevd_additional_thread_info.py", line 17, in
from _pydevd_bundle.pydevd_cython_wrapper import PyDBAdditionalThreadInfo
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 29, in
mod = __import__(check_name)
File "_pydevd_bundle\pydevd_cython_win32_36_64.pyx", line 137, in init _pydevd_bundle.pydevd_cython_win32_36_64 (_pydevd_bundle/pydevd_cython_win32_36_64.c:23437)
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevd_breakpoints.py", line 15, in
from _pydevd_bundle.pydevd_comm import get_global_debugger
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 76, in
import pydevconsole
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\pydevconsole.py", line 10, in
from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole
File "C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\pydev\_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 105
except SyntaxError, err:
^
SyntaxError: invalid syntax
Process finished with exit code 1