[英]How to install easygui on Macbook Pro(macOS Sierra)?
I've searched & tried many ways to install easygui,but still, when I import easygui, python reminded me 我已经搜索并尝试了很多方法来安装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
So what should I do then? 那我该怎么办呢? How to install easygui on my mac?
如何在我的mac上安装easygui?
------How I installed it------- ------我是如何安装的-------
S1 Open up Terminal S1打开终端
S2 Type in pip install easygui S2输入pip install easygui
S3 Terminal returns the message: 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$
theres a character in the easygui.py file. theres是easygui.py文件中的一个字符。 you'll have to edit it.
你必须编辑它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.