admin管理员组

文章数量:1608599

”RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment“ 错误

使用Sentinel hub开发包下载Sentinel-2数据时报出编码错误:

RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.


原因是Sentinel hub开发包使用了click包,而click的编码与配置为ASCII作为环境编码python3不兼容。

解决方法

每次运行前设置编码环境变量

export LC_ALL=en_US.utf-8
export LANG=en_US.utf-8

本文标签: abortclickRuntimeErrorExecutionASCIl