Python pip安装rauth失败:语法错误
我刚刚安装了Python 3.3,然后通过发出以下命令尝试安装rauth: pip安装rauth 我得到了这个错误:Python pip安装rauth失败:语法错误,python,pip,Python,Pip,我刚刚安装了Python 3.3,然后通过发出以下命令尝试安装rauth: pip安装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\appda
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
同样,安装oauth2也会失败。但安装selenium成功了
现在是什么导致了这次失败
提前感谢。与许多软件包一样,rauth目前不支持Python 3。然而,看起来好像有一个分支,他们正在处理它。看
一般来说,如果您使用Python 2.7,安装软件包可能会更幸运。该软件包不支持Python 3。非常感谢。但只有一件事-问题表明一些基本的syntac错误,比如except。它不是python的一部分吗?python 3中引发异常的语法略有不同。请查看此网站:。具体来说,请查看“捕获当前引发的异常”部分。
## Heading ##c:\Python33\Scripts>