linwanmu 发表于 2018-8-15 19:50:29

Anaconda3 下的python安装easygui无法使用怎么办?出现AttributeError!

AttributeError: module 'easygui' has no attribute 'msgbox'

claws0n 发表于 2018-8-15 19:54:11

pip3 install easygui
试试

无符号整形 发表于 2018-8-15 20:17:36

重新安装一次吧,貌似已经安装成功了,但是可能是旧版本

linwanmu 发表于 2018-8-15 20:19:17

claws0n 发表于 2018-8-15 19:54
pip3 install easygui
试试

不行,pip3不是内部或外部的命令也不可运行

linwanmu 发表于 2018-8-15 20:21:47

无符号整形 发表于 2018-8-15 20:17
重新安装一次吧,貌似已经安装成功了,但是可能是旧版本

不行,help出来的没有任何自带属性。。。。
重装了好多遍,是最新版本!

无符号整形 发表于 2018-8-15 20:23:43

linwanmu 发表于 2018-8-15 20:21
不行,help出来的没有任何自带属性。。。。
重装了好多遍,是最新版本!

试试dir(easygui)

linwanmu 发表于 2018-8-15 20:25:34

无符号整形 发表于 2018-8-15 20:23
试试dir(easygui)

['__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__spec__']
没有?

claws0n 发表于 2018-8-15 20:27:00

linwanmu 发表于 2018-8-15 20:19
不行,pip3不是内部或外部的命令也不可运行

不对呀,python 3 是有 pip3 的,在 cmd 是可执行的。而且 python 3 建议使用 pip3 而不是 pip 了

不过,那个图最上角, Console 2/A 是档案名称吗?

可试试 import easygui as g

linwanmu 发表于 2018-8-15 20:29:37

claws0n 发表于 2018-8-15 20:27
不对呀,python 3 是有 pip3 的,在 cmd 是可执行的。而且 python 3 建议使用 pip3 而不是 pip 了

不 ...

console就是shell,您说的都试过了{:10_266:}

claws0n 发表于 2018-8-15 20:32:45

linwanmu 发表于 2018-8-15 20:29
console就是shell,您说的都试过了

没用过{:10_266:}

档案名?? 2/A ?? 不能用斜杠吧,会使路径错误

linwanmu 发表于 2018-8-15 20:46:06

claws0n 发表于 2018-8-15 20:32
没用过

档案名?? 2/A ?? 不能用斜杠吧,会使路径错误

就是命令窗口,控制台,只要是我有一学姐和我软件一样,同样的方法,她可以运行,我不能,不知道问题出在哪里!

claws0n 发表于 2018-8-15 20:57:09

linwanmu 发表于 2018-8-15 20:46
就是命令窗口,控制台,只要是我有一学姐和我软件一样,同样的方法,她可以运行,我不能,不知道问题出在 ...

>>> import easygui
>>> dir(easygui)
['EgStore', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'abouteasygui', 'boolbox', 'boxes', 'buttonbox', 'ccbox', 'choicebox', 'codebox', 'diropenbox', 'eg_version', 'egdemo', 'egversion', 'enterbox', 'exceptionbox', 'fileopenbox', 'filesavebox', 'indexbox', 'integerbox', 'msgbox', 'multchoicebox', 'multenterbox', 'multpasswordbox', 'passwordbox', 'read_or_create_settings', 'textbox', 'ynbox']

看来你的安装有问题~
环境变量有木有问题?重启?

linwanmu 发表于 2018-8-15 21:14:20

claws0n 发表于 2018-8-15 20:57
>>> import easygui
>>> dir(easygui)
['EgStore', '__all__', '__builtins__', '__cached__', '__doc_ ...

就是不知道问题出在哪里

linwanmu 发表于 2018-8-15 21:16:03

claws0n 发表于 2018-8-15 20:57
>>> import easygui
>>> dir(easygui)
['EgStore', '__all__', '__builtins__', '__cached__', '__doc_ ...

谢谢大神门支招,我再试试!

linwanmu 发表于 2018-8-15 22:30:05

claws0n 发表于 2018-8-15 20:57
>>> import easygui
>>> dir(easygui)
['EgStore', '__all__', '__builtins__', '__cached__', '__doc_ ...

我之前的环境变量目录错了。。。。。现在好了
页: [1]
查看完整版本: Anaconda3 下的python安装easygui无法使用怎么办?出现AttributeError!