当我尝试使用 pudb 和 PyCharm 调试器时遇到以下错误。我最近更新了 PyCharm,之后我遇到了这个失败。这是我尝试启动该过程的示例:python3.4 -m pubd.run initdata.py
这是我的 Pycharm 信息:
PyCharm 社区版 2016.1.3 Build #PC-145.971,于 2016 年 5 月 3 日构建 JRE:1.8.0_40-release-b132 x86_64 JVM:JetBrains sro 的 OpenJDK 64 位服务器 VM
Could not import runpy module
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/runpy.py", line 15, in <module>
import importlib.util
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/importlib/util.py", line 12, in <module>
from contextlib import contextmanager
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/contextlib.py", line 4, in <module>
from collections import deque
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/collections/__init__.py", line 12, in <module>
from keyword import iskeyword as _iskeyword
ImportError: cannot import name 'iskeyword'