如何在Macbook Pro(macOS Sierra)上安装easygui?

时间:2017-02-04 05:18:16

标签: python

我搜索过&尝试了很多方法来安装easygui,但是,当我导入easygui时,python提醒我

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import easygui
  File "easygui.py", line 1

SyntaxError: Non-ASCII character '\xff' in file easygui.py on line 2, but no 
encoding declared; see http://python.org/dev/peps/pep-0263/ for details

那我该怎么办?如何在我的mac上安装easygui?

------我是如何安装的-------

S1打开终端

S2输入pip install easygui

S3 Terminal返回消息:

localhost:~ Fannn$ pip install easygui 
Collecting easygui
  Downloading easygui-0.98.1-py2.py3-none-any.whl (90kB)
    100% |████████████████████████████████| 92kB 13kB/s 
Installing collected packages: easygui
Successfully installed easygui-0.98.1
localhost:~ Fannn$ 

1 个答案:

答案 0 :(得分:0)

是easygui.py文件中的一个字符。你必须编辑它。