import easygui报错
明明安装成功了easygui,却显示错误Traceback (most recent call last):File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 29, in <module>
import tkinter as tk# python3
File "./lib/python3.7/tkinter/__init__.py", line 36, in <module>
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 36, in <module>
import Tkinter as tk# python2
ModuleNotFoundError: No module named 'Tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 15, in <module>
from . import utils as ut
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 43, in <module>
raise ImportError("Unable to find tkinter package.")
ImportError: Unable to find tkinter package.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/a.py", line 1, in <module>
import easygui
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/__init__.py", line 34, in <module>
from .boxes.button_box import buttonbox
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 18, in <module>
import global_state
ModuleNotFoundError: No module named 'global_state'
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 29, in <module>
import tkinter as tk# python3
File "./lib/python3.7/tkinter/__init__.py", line 36, in <module>
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 36, in <module>
import Tkinter as tk# python2
ModuleNotFoundError: No module named 'Tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 15, in <module>
from . import utils as ut
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 43, in <module>
raise ImportError("Unable to find tkinter package.")
ImportError: Unable to find tkinter package.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/a.py", line 1, in <module>
import easygui
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/__init__.py", line 34, in <module>
from .boxes.button_box import buttonbox
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 18, in <module>
import global_state
ModuleNotFoundError: No module named 'global_state'
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 29, in <module>
import tkinter as tk# python3
File "./lib/python3.7/tkinter/__init__.py", line 36, in <module>
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 36, in <module>
import Tkinter as tk# python2
ModuleNotFoundError: No module named 'Tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 15, in <module>
from . import utils as ut
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/utils.py", line 43, in <module>
raise ImportError("Unable to find tkinter package.")
ImportError: Unable to find tkinter package.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/a.py", line 1, in <module>
import easygui
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/__init__.py", line 34, in <module>
from .boxes.button_box import buttonbox
File "/var/mobile/Containers/Data/Application/9B607A70-23A8-438D-89E0-D27C009580B3/Documents/third_packages/easygui-0.98.3-py3.7.egg/easygui/boxes/button_box.py", line 18, in <module>
import global_state
ModuleNotFoundError: No module named 'global_state'
我是使用app store上的Python3AI软件安装的 咸苹果 发表于 2022-7-8 11:07
我是使用app store上的Python3AI软件安装的
手机编程? 南归 发表于 2022-7-8 11:37
手机编程?
iPad编程 南归 发表于 2022-7-8 11:37
手机编程?
不过手机也有同样的错误 咸苹果 发表于 2022-7-8 11:56
不过手机也有同样的错误
easygui是基于tkinter的,而tkinter只有电脑端有 临时号 发表于 2022-7-8 11:57
easygui是基于tkinter的,而tkinter只有电脑端有
谢谢
页:
[1]