pip3 install couchdbkit 失败,并显示"命令"python setup.py egg_info"



我无法在 ubuntu 中安装 couchdbkit。命令:pip3 install couchdbkit给出以下错误:

Collecting couchdbkit
Using cached couchdbkit-0.6.5.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-build-_302m_0e/couchdbkit/setup.py", line 25, in <module>
long_description = file(
NameError: name 'file' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_302m_0e/couchdbkit/

如果有任何其他方法可以在 ubuntu 中安装 couchdbkit,请指导我。

这是因为 python3 不支持 couchdbkit。file在 Python 的 3x 版中删除。这里也指出了这一点:

Couchdbkit 需要优于 2.6 的 Python 2.x。

为什么pip3仍然尝试下载它是另一个问题。

相关内容

最新更新