PS C:\wxauto-WeChat3.9.8\wxauto> python wx_robot_gui.py
Traceback (most recent call last):
File "C:\wxauto-WeChat3.9.8\wxauto\wx_robot_gui.py", line 2, in
from wxauto import WeChat
File "C:\wxauto-WeChat3.9.8\wxauto\wxauto.py", line 8, in
from .languages import
ImportError: attempted relative import with no known parent package
把这段代码改成from languages import 就好了
PS C:\wxauto-WeChat3.9.8\wxauto> python wx_robot_gui.py Traceback (most recent call last): File "C:\wxauto-WeChat3.9.8\wxauto\wx_robot_gui.py", line 2, in
from wxauto import WeChat
File "C:\wxauto-WeChat3.9.8\wxauto\wxauto.py", line 8, in
from .languages import
ImportError: attempted relative import with no known parent package
把这段代码改成from languages import 就好了