Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding Problem will cause download error. #1

Open
RobinHistory opened this issue Jul 26, 2020 · 1 comment
Open

Encoding Problem will cause download error. #1

RobinHistory opened this issue Jul 26, 2020 · 1 comment

Comments

@RobinHistory
Copy link

RobinHistory commented Jul 26, 2020

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!

@xuyuanfang
Copy link

xuyuanfang commented Jul 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants