首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法安装Python Eel

无法安装Python Eel
EN

Stack Overflow用户
提问于 2018-01-08 20:17:49
回答 1查看 2.5K关注 0票数 0

我试图使用pip install eel来安装eel,但是我得到了一个错误

代码语言:javascript
运行
复制
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

EN

回答 1

Stack Overflow用户

发布于 2018-01-08 20:29:40

Python2.7中的open函数有一个不同的签名,特别是没有名为encoding的关键字参数,正如您可以从错误消息中看到的那样。

Eel似乎不支持Python2.7(无论如何你都应该使用Python3 ;)

Python2.7中的openhttps://docs.python.org/2/library/functions.html#open

Python3.6中的openhttps://docs.python.org/3/library/functions.html#open

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48150143

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档