繁体   English   中英

使用pip在Python 3.3上安装ckanclient时出错

[英]Error installing ckanclient on Python 3.3 using pip

我正在尝试使用pip在Python 3.3上安装ckanclient。 我正在使用的命令行是:

c:\\ Python33 \\ Scripts> pip安装ckanclient

我越来越:

Downloading/unpacking ckanclient
  Downloading ckanclient-0.10.tar.gz
  Running setup.py (path:c:\users\lgms\appdata\local\temp\pip_build_lgms\ckanclient\setup.py) egg_info for package ckanclient
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "c:\users\lgms\appdata\local\temp\pip_build_lgms\ckanclient\setup.py"
, line 8, in <module>
        from ckanclient import __version__, __description__, __long_description_
_, __license__
      File ".\ckanclient\__init__.py", line 100
        except HTTPError, inst:
                        ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "c:\users\lgms\appdata\local\temp\pip_build_lgms\ckanclient\setup.py", li
ne 8, in <module>

    from ckanclient import __version__, __description__, __long_description__, _
_license__

  File ".\ckanclient\__init__.py", line 100

    except HTTPError, inst:

                    ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...

我需要那里发生的事情以及如何解决的线索。 我的操作系统是Windows 7 Pro,我使用的是标准的Python发行版(我还安装了Anaconda Python,但这看起来并不像版本冲突)。

完整的错误日志位于: http : //pastebin.com/NgFFCrcK

ckanclient以及CKAN本身与Python 3不兼容。您将需要2.7。

另一个提示:不建议使用ckanclient,请参阅https://github.com/okfn/ckanclient-deprecated 但是,如果出于某些原因您确实需要它,请不要使用较旧的pip(例如pypi)版本,而是使用github上的最新版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM