python-baidusearch icon indicating copy to clipboard operation
python-baidusearch copied to clipboard

Encoding Problem will cause download error.

Open RobinHistory opened this issue 5 years ago • 1 comments

In setup.py: def read(fname): return open(os.path.join(os.path.dirname(file), fname),encoding="utf-8").read(); didn't make sure that the encoding is UTF-8.(I myself add the encoding="utf-8")And this will cause some gbk-users can't pip install baidusearch with command line error "exit status 1". Anyway,thanks for your work!

RobinHistory avatar Jul 26 '20 02:07 RobinHistory

应该是他的readme文件有问题,你把setup文件里的read屏蔽掉,就可以装了。亲测有效 Successfully built baidusearch Installing collected packages: lxml, baidusearch Successfully installed baidusearch-1.0.2 lxml-4.5.2

xuyuanfang avatar Jul 26 '20 11:07 xuyuanfang