黎明zxc 发表于 2020-3-19 08:21:56

为什么调用easygui失败(我用的是qpython op)

ted/0/qpython/编程/c.py" && exit            <
Traceback (most recent call last):
File "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/easygui/boxes/utils.py", line 29, in <module>
    import tkinter as tk# python3
ModuleNotFoundError: No module named 'tkinter'
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/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 "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/easygui/boxes/button_box.py", line 15, in <module>
    from . import utils as ut
File "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/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 "/storage/emulated/0/qpython/编程/c.py", line 1, in <module>
    import easygui as g
File "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/easygui/__init__.py", line 34, in <module>
    from .boxes.button_box import buttonbox
File "/data/user/0/com.hipipal.qpyplus/files/lib/python3.6/site-packages/easygui/boxes/button_box.py", line 18, in <module>
    import global_state
ModuleNotFoundError: No module named 'global_state'
1|:/ $

六小鸭 发表于 2020-3-19 08:36:43

链接:https://pan.baidu.com/s/1Ef5w5yfe2mHEjqfsv2bJXw提取码:t1bj复制这段内容后打开百度网盘手机App,操作更方便哦

六小鸭 发表于 2020-3-19 08:37:18

我记得是这个放在Python的一个文件夹里
{:10_312:}

六小鸭 发表于 2020-3-19 08:54:26

链接:https://pan.baidu.com/s/1Ef5w5yfe2mHEjqfsv2bJXw提取码:t1bj复制这段内容后打开百度网盘手机App,操作更方便哦
安装:解压后将easygui.py拷贝进Python安装目录下的Lib\site-packages文件夹下
简单的一匹{:10_256:}
页: [1]
查看完整版本: 为什么调用easygui失败(我用的是qpython op)