Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 6304: illegal multibyte sequence #11

Closed
Watesoyan opened this issue Nov 7, 2017 · 8 comments

Comments

@Watesoyan
Copy link

Watesoyan commented Nov 7, 2017

Environment: Windows 7
Python: 3.6.2

pip installation failed.

Collecting tangent
  Using cached tangent-0.1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-k2pei7vz\tangent\setu
p.py", line 5, in <module>
        readme = f.read()
    UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 6304: ill
egal multibyte sequence

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1
\AppData\Local\Temp\pip-build-k2pei7vz\tangent\
@Watesoyan Watesoyan changed the title UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 6304: ill egal multibyte sequence UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 6304: illegal multibyte sequence Nov 7, 2017
@berseus
Copy link
Contributor

berseus commented Nov 7, 2017

Got the same thing, so I had to clone and make minor changes to README.md before it worked. See my pull request for the exact changes: #12

@Watesoyan
Copy link
Author

Watesoyan commented Nov 7, 2017

This issue can be solved by adding ", encoding='utf-8' "
Please refer to https://github.com/google/tangent/pull/9 .

@Watesoyan
Copy link
Author

Watesoyan commented Nov 7, 2017

@berseus Me too, I have also cloned and downloaded it.

@berseus
Copy link
Contributor

berseus commented Nov 7, 2017

@Watesoyan I saw your fix as well, and it looks nice in case you prefer to keep the non-ascii symbols in the markdown file.

@alexbw
Copy link
Contributor

alexbw commented Nov 7, 2017

Doubly fixed in PRs #12 and #9. Thanks folks!

@alexbw alexbw closed this as completed Nov 7, 2017
@PabloLION
Copy link

For Chinese system language users:
在 控制面板-区域-更改系统区域设置 中
勾选 Beta版:使用 Unicode UTF=8 提供全球语言支持(U) 选项
重启电脑后,就可以安装了。

@alexbw
Copy link
Contributor

alexbw commented Jan 21, 2019

The PR mentioned above has been merged, is this still an issue for people?

@Kilua01
Copy link

Kilua01 commented Sep 19, 2023

For Chinese system language users: 在 控制面板-区域-更改系统区域设置 中 勾选 Beta版:使用 Unicode UTF=8 提供全球语言支持(U) 选项 重启电脑后,就可以安装了。

This solved my problem when running !pip install CIRpy. Thanks so much!!!!!

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

No branches or pull requests

5 participants