且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google Cloud SDK安装错误:UnicodeDecodeError:'ascii'编解码器无法解码位置197的字节0xe2:序数不在范围内(128)

更新时间:2023-10-21 19:02:52

下面有一个公开的请求请求来解决此问题,此链接已解决.问题是其中一个文件包含非ASCII字符,这会导致Google Cloud SDK安装程序失败. Python 2.7中的open()函数不允许指定的编码.

There is an open pull request to address this issue linked below that fixes the issue. The issue was that one of the files contain non-ASCII characters which causes the the Google Cloud SDK installer to fail. The open() function in Python 2.7 doesn't allow for a specified encoding.

修复:
所有带有open()的引用都应替换为io.open(..., encoding='utf-8').再次检查拉动请求以查看那些更改.

Fix:
All references with open() should be replaced with io.open(..., encoding='utf-8'). Once again check the pull request to see those changes.

资源:
- https://github.com/google-cloud -sdk/google-cloud-sdk/pull/2/files

Resources:
- https://github.com/google-cloud-sdk/google-cloud-sdk/pull/2/files