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

windows下pip安装报UnicodeDecodeError #20

Open
AioRos85 opened this issue Nov 9, 2024 · 1 comment
Open

windows下pip安装报UnicodeDecodeError #20

AioRos85 opened this issue Nov 9, 2024 · 1 comment

Comments

@AioRos85
Copy link

AioRos85 commented Nov 9, 2024

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\LocalX\AppData\Local\Temp\pip-install-m82zpk8s\bytepiece_78856bb730d44450b525319f31404e89\setup.py", line 11, in
long_description=open('README_en.md').read(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 4: illegal multibyte sequence
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@AioRos85
Copy link
Author

AioRos85 commented Nov 9, 2024

open('README_en.md').read()
改为
open('README_en.md',encoding='utf-8').read()

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

1 participant