我无法在 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
在版本 3x 中从 python 中删除。这也在这里指出:
Couchdbkit 需要 Python 2.x 优于 2.6。
为什么 pip3 仍然尝试下载它是另一个问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句