运行项目报错:
"C:\PyCharm 2018.2.4\bin\runnerw.exe" C:\Anaconda3\envs\kf\python.exe "C:\PyCharm 2018.2.4\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 17521 --file F:/django/wxpay/manage.py runserver 192.168.0.22:8010
Traceback (most recent call last):
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 2, in <module>
from _pydevd_bundle_ext.pydevd_cython import trace_dispatch, PyDBAdditionalThreadInfo, global_cache_skips, global_cache_frame_skips
ModuleNotFoundError: No module named '_pydevd_bundle_ext'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\PyCharm 2018.2.4\helpers\pydev\pydevconsole.py", line 8, in <module>
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:\PyCharm 2018.2.4\helpers\pydev\pydevd.py", line 28, in <module>
from _pydevd_bundle.pydevd_additional_thread_info import PyDBAdditionalThreadInfo
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_additional_thread_info.py", line 17, in <module>
from _pydevd_bundle.pydevd_cython_wrapper import PyDBAdditionalThreadInfo
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 32, in <module>
mod = __import__(check_name)
File "_pydevd_bundle\pydevd_cython_win32_36_64.pyx", line 139, in init _pydevd_bundle.pydevd_cython_win32_36_64
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_breakpoints.py", line 16, in <module>
from _pydevd_bundle.pydevd_comm import get_global_debugger
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 82, in <module>
import pydevconsole
File "C:\PyCharm 2018.2.4\helpers\pydev\pydevconsole.py", line 10, in <module>
from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole
File "C:\PyCharm 2018.2.4\helpers\pydev\_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 105
except SyntaxError, err:
^
SyntaxError: invalid syntax
是因为我的文件夹中也有一个文件命名为 code.py ,debug调用的时候现在本文件夹中查找了,修改成别的名称就可以了,
例如修改成 code1.py 运行就不在报错了。