ValueError:尝试在非软件包#Python #Pycharm #pyOCD中进行相对导入

时间:2019-11-12 11:37:52

标签: python

当我尝试在Pycharm中调试pyOCD时收到此消息。有人可以告诉我这是什么问题吗?

回溯(最近通话最近一次):

File "C:\Program Files\JetBrains\PyCharm 2019.2.4\helpers\pydev\pydevd.py", line 1415, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:/Users/Software/Downloads/pyOCD-master/pyocd/main.py", line 30, in
from . import version
ValueError: Attempted relative import in non-package

0 个答案:

没有答案