|
发表于 2022-3-25 10:13:05
|
显示全部楼层
这么 解决的啊?我搞了 半天没弄好。Visual Studio Code ,Python 3.10 (32-bit)里面效果一样。
python.exe setup.py install
or pip install easygui
or python.exe -m pip install --upgrade pip and \ pip install pygame
or pip install --user easygui
结局一样!
除了 IDLE (Python 3.10 32-bit) 可以外:
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 18:54:59) [MSC v.1929 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import easygui
>>> easygui.msgbox('我是你爸爸 !')
'OK'
>>>
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 18:54:59) [MSC v.1929 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
====================== RESTART: E:/156u4/new proj/temp3.py =====================
Traceback (most recent call last):
File "E:/156u4/new proj/temp3.py", line 1, in <module>
import easygui
File "E:\156u4/new proj\easygui\__init__.py", line 3, in <module>
__all__ = easygui.__all__
NameError: name 'easygui' is not defined
|
|