cannot import name 'InteractiveConsole'
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 <module>
from _pydevd_bundle.pydevd_cython import trace_dispatch, PyDBAdditionalThreadInfo, global_cache_skips, global_cache_frame_skips
ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cyt
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/85539369
- 点赞
- 收藏
- 关注作者
评论(0)