3

我正在使用 Python 3,但无法 --> pip install poster library

我正在尝试使用海报上传文件。我试过: pip install poster 或 easy_install poster 他们都失败了我得到一个错误:

print "send:", repr(value)
                ^
SyntaxError: invalid syntax

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\...

pip install poster  also tried   

easy_install poster .  

我也试过下载 .tar.gz ,我得到了同样的错误

I have also tried : pip install --upgrade setuptools
4

3 回答 3

2

根据第一行代码,似乎poster只兼容 Python 2。请注意,这个库的最新版本是在 2011 年发布的,因此可能没有实现 Python 3 兼容性。

尝试使用不同的库或切换到 Python 2。

于 2019-01-06T23:51:57.150 回答
0

使用海报3

这是海报的Python3版本。

于 2019-12-12T18:45:43.590 回答
0

对于 Python3,请使用 poster3。参考这个

pip install poster3
于 2020-08-07T10:20:26.440 回答