在服务器上安装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