2017-07-25 229 views
1

我一直在試圖對蟒蛇3.6安裝Gearman的,但我發現這個錯誤3.6錯誤:的Python安裝時PIP安裝的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 - >畫中畫9.0.1從[my_project_folder] /venv/lib/python3.6/site-packages(蟒蛇3.6)

蟒蛇--version - >的Python 3.6.2

我該如何解決呢?

回答

2

gearman包不支持Python 3.只有python 2.4-2.7支持根據他們的setup.py。有一個開放的pull request添加python 3的支持,但它一年未觸及。我相信Yelp!可能已經停止支持這個圖書館。