鱼C论坛

 找回密码
 立即注册
查看: 1386|回复: 6

[已解决]import easygui报错

[复制链接]
发表于 2022-7-8 11:06:14 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
明明安装成功了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'
最佳答案
2022-7-8 11:57:28
咸苹果 发表于 2022-7-8 11:56
不过手机也有同样的错误

easygui是基于tkinter的,而tkinter只有电脑端有
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2022-7-8 11:07:19 | 显示全部楼层
我是使用app store上的Python3AI软件安装的
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-7-8 11:37:45 | 显示全部楼层
咸苹果 发表于 2022-7-8 11:07
我是使用app store上的Python3AI软件安装的

手机编程?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-7-8 11:55:40 | 显示全部楼层

iPad编程
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-7-8 11:56:11 | 显示全部楼层

不过手机也有同样的错误
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2022-7-8 11:57:28 | 显示全部楼层    本楼为最佳答案   
咸苹果 发表于 2022-7-8 11:56
不过手机也有同样的错误

easygui是基于tkinter的,而tkinter只有电脑端有
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-7-8 11:58:21 | 显示全部楼层
临时号 发表于 2022-7-8 11:57
easygui是基于tkinter的,而tkinter只有电脑端有

谢谢
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-17 16:40

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表