IT序号网

PyCharm不能debug问题

shasha 2022年04月08日 编程语言 326 0

错误日志

控制台错误

Traceback (most recent call last): 
  File "C:\Program Files\JetBrains\PyCharm 2019.1.4\helpers\pydev\pydevd.py", line 15, in <module> 
    from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PY34_OR_GREATER, IS_PY36_OR_GREATER, IS_PYCHARM, get_thread_id, \ 
ModuleNotFoundError: No module named '_pydevd_bundle' 

事件日志错误

Connection to Python debugger failed: Interrupted function call: accept failed 

原因

windows 下使用的是的第一种压缩包解压式,应该使用第二种安装器安装,第一种相比第二种少了很多文件和文件夹。

错误日志

Fatal Python error: init_sys_streams: can't initialize sys standard streams 
Python runtime state: core initialized 
Traceback (most recent call last): 
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\io.py", line 52, in <module> 
  File "D:/python/projects/python_first/first\abc.py", line 4, in <module> 
RuntimeError: lost sys.stdout 

原因

执行文件名称abc和python内部文件名称重复了,改个名称就行了。


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

php中首行缩进方法,Zblogphp文章自动每段首行缩进2个字符