我刚刚安装了Python 3.3,然后我尝试通过发出命令安装rauth:
pip install 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 \本地\ TEMP \ PIP-集结pipul \ rauth 在C:\ Users \ pipul \ pip \ pip.log
中存储完整的日志## Heading ##c:\Python33\Scripts>
同样安装oauth2也会失败。但安装硒成功了。
现在可能导致这种失败的原因是什么?
提前致谢。
答案 0 :(得分:0)
与许多软件包一样,rauth目前不支持Python 3.但是,看起来它们正在处理它的分支。请参阅here。
一般情况下,如果使用Python 2.7,可能会有更多运气安装包。