我试图使用pip install eel来安装eel,但是我得到了一个错误
C:\Users\USER>pip install eel
Collecting eel
Using cached Eel-0.7.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\user\appdata\local\temp\pip-build-aa7ptb\eel\setup.py", line 14, in <module>
long_description=open('README.md', encoding='utf-8').readlines()[1],
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\user\appdata\local\temp\pip-build-aa7ptb\eel\我尝试使用pip install --upgrade setuptools,但仍然不起作用。
使用python 2.7
发布于 2018-01-08 20:29:40
Python2.7中的open函数有一个不同的签名,特别是没有名为encoding的关键字参数,正如您可以从错误消息中看到的那样。
Eel似乎不支持Python2.7(无论如何你都应该使用Python3 ;)
Python2.7中的open:https://docs.python.org/2/library/functions.html#open
Python3.6中的open:https://docs.python.org/3/library/functions.html#open
https://stackoverflow.com/questions/48150143
复制相似问题