gpt4 book ai didi

google-cloud-platform - Google Cloud App SDK 崩溃 → 云崩溃(LookupError): unknown encoding cp65001

转载 作者:行者123 更新时间:2023-12-04 02:45:01 31 4
gpt4 key购买 nike

我从 https://cloud.google.com/sdk/docs/ 获得 App Engine
安装后,我无法运行 gsutil initgcloud info --run-diagnostics在 Google Clood SDK Shell 或 Windows Powershell 中,它以以下错误结束:

Welcome! This command will take you through the configuration of gcloud.

Your current configuration has been set to: [default]

You can skip diagnostics next time by using the following flag:
gcloud init --skip-diagnostics

Network diagnostic detects and fixes local network connection issues.
ERROR: gcloud crashed (LookupError): unknown encoding: cp65001

If you would like to report this issue, please run the following command:
gcloud feedback

To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics

我将 UTF-8 设置为编码:
[Console]::OutputEncoding
BodyName : utf-8
EncodingName : Unicode (UTF-8)
HeaderName : utf-8
WebName : utf-8
WindowsCodePage : 1200
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
IsSingleByte : False
EncoderFallback : System.Text.EncoderReplacementFallback
DecoderFallback : System.Text.DecoderReplacementFallback
IsReadOnly : True
CodePage : 65001

我已经尝试了所有这些答案,但没有帮助→ gsutil command crashes every time on Windows 10 ,
LookupError: unknown encoding: cp0 , Python 2.7 : LookupError: unknown encoding: cp65001

我试过安装 Python 3.7、2.7.9 和“Bundled Python”。

最佳答案

您可以尝试运行:

set PYTHONIOENCODING=UTF-8

或者,创建一个名为“PYTHONIOENCODING”且值为“UTF-8”的环境变量。

它为我解决了问题。

关于google-cloud-platform - Google Cloud App SDK 崩溃 → 云崩溃(LookupError): unknown encoding cp65001,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52540622/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com