0

我刚刚安装了 Python 3.3,然后我尝试通过发出以下命令来安装 rauth:

点安装劳斯

我得到这个错误:

Downloading/unpacking rauth
Running setup.py egg_info for package rauth
Traceback (most recent call last):
    File "<string>", line 16, in <module>
    File "c:\users\pipul\appdata\local\temp\pip-build-pipul\rauth\setup.py", l
    ine 4, in <module>
    from rauth import __version__
    File ".\rauth\__init__.py", line 30, in <module>
    from .service import OAuth1Service, OAuth2Service, OflyService
    File ".\rauth\service.py", line 23
    except KeyError, e:  # pragma: no cover
                   ^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

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

File "c:\users\pipul\appdata\local\temp\pip-build-pipul\rauth\setup.py", line 4, in    <module>

from rauth import __version__

File ".\rauth\__init__.py", line 30, in <module>

from .service import OAuth1Service, OAuth2Service, OflyService

File ".\rauth\service.py", line 23

except KeyError, e:  # pragma: no cover

               ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\pipul\appd

ata\local\temp\pip-build-pipul\rauth 将完整的日志存储在 C:\Users\pipul\pip\pip.log

## Heading ##c:\Python33\Scripts>

同样安装 oauth2 也会失败。但是安装 selenium 成功了。

现在可能是什么导致了这个失败?

提前致谢。

4

1 回答 1

0

像许多软件包一样,rauth 目前不支持 Python 3。但是,看起来他们正在开发一个分支。见这里

一般来说,如果你使用 Python 2.7,你可能会更幸运地安装包。

于 2013-06-23T01:50:40.397 回答