Py学习  »  Python

命令“python setup.py egg_info”失败,错误代码为1 in/tmp/pip install rjrupl/pyfinite/

Mark • 5 年前 • 1686 次点击  

我正在尝试使用

pip安装pyfinite

但当我尝试时,我得到了以下错误:

    Collecting pyfinite
  Downloading https://files.pythonhosted.org/packages/ca/d3/c836cdb45006961c7917572d9673a0bd9e9e241df264cccca96cbbca1221/pyfinite-1.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 30, in <module>
        long_description=get_readme(),
      File "/tmp/pip-install-rJRUpL/pyfinite/setup.py", line 21, in get_readme
        with open(path.join(here, 'README.rst'), encoding='utf-8') as my_fd:
    TypeError: 'encoding' is an invalid keyword argument for this function

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rJRUpL/pyfinite/

我重新安装了pip,但这并没有解决我的问题,尽管我用sudo执行了pip命令,但这并没有解决我的问题。

我的操作系统是ubuntu 18.04

怎么了?如何解决这个问题?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/47672
 
1686 次点击  
文章 [ 1 ]  |  最新文章 5 年前
phd
Reply   •   1 楼
phd    6 年前

pyfinite is Python3-only ,它不适用于Python2.7。