gpt4 book ai didi

Python 3.6 安装 pip install gearman 时出错

转载 作者:行者123 更新时间:2023-12-01 02:45:32 25 4
gpt4 key购买 nike

我一直在尝试在 python 3.6 上安装 gearman,但收到此错误:

$ pip install gearman
Collecting gearman
Using cached gearman-2.0.2.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-xmf1cqe7/gearman/setup.py", line 5, in <module>
from gearman import __version__ as version
File "/tmp/pip-build-xmf1cqe7/gearman/gearman/__init__.py", line 7, in <module>
from gearman.admin_client import GearmanAdminClient
File "/tmp/pip-build-xmf1cqe7/gearman/gearman/admin_client.py", line 4, in <module>
from gearman import util
File "/tmp/pip-build-xmf1cqe7/gearman/gearman/util.py", line 62
except select_lib.error, exc:
^
SyntaxError: invalid syntax

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-xmf1cqe7/gearman/

我使用的是 Ubuntu 16.04 LTS

pip -V -> pip 9.0.1 来自 [my_project_folder]/venv/lib/python3.6/site-packages (python 3.6)

python --版本 -> Python 3.6.2

我该如何解决这个问题?

最佳答案

gearman包不支持Python 3。根据其setup.py仅支持python 2.4-2.7 。有一个开放pull request添加 python 3 支持,但一年来一直没有动过。我相信耶尔普!可能已停止支持该库。

关于Python 3.6 安装 pip install gearman 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45292436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com