安装anaconda3时系统编码报错

在服务器上安装anaconda3时遇到以下报错:

Unpacking payload ... concurrent.futures.process._RemoteTraceback: """ Traceback (most recent call last): File "concurrent/futures/process.py", line 261, in _process_worker File "conda_package_handling/api.py", line 77, in extract File "conda_package_handling/conda_fmt.py", line 46, in extract File "conda_package_handling/streaming.py", line 53, in _extract File "conda_package_streaming/extract.py", line 47, in extract_stream File "tarfile.py", line 2256, in extractall File "conda_package_streaming/extract.py", line 42, in checked_members File "conda_package_streaming/extract.py", line 33, in is_within_dest_dir File "<frozen posixpath>", line 416, in realpath File "<frozen posixpath>", line 451, in _joinrealpath UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 90: ordinal not in range(128) """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "entry_point.py", line 170, in _constructor_extract_conda_pkgs File "concurrent/futures/_base.py", line 449, in result File "concurrent/futures/_base.py", line 401, in __get_result UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 90: ordinal not in range(128) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "entry_point.py", line 308, in <module> File "entry_point.py", line 300, in main File "entry_point.py", line 208, in _constructor_subcommand File "entry_point.py", line 172, in _constructor_extract_conda_pkgs RuntimeError: Failed to extract /data/anaconda3/pkgs/sphinx-7.3.7-py312h5eee18b_0.conda: 'ascii' codec can't encode character '\xe4' in position 90: ordinal not in range(128) [271802] Failed to execute script 'entry_point' due to unhandled exception!

解决办法:

export LC_ALL=C.UTF-8

export LANG=C.UTF-8

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值