报错内容
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "D:\app\Anaconda\Lib\site-packages\conda\exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\app\Anaconda\Lib\site-packages\conda\cli\main.py", line 110, in main_sourced
print(activator.execute(), end="")
UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 141: illegal multibyte sequence
`$ D:\app\Anaconda\Scripts\conda-script.py shell.posix activate py310`
解决办法
直接根据路径,修改 main.py 110 代码,
# print(activator.execute(), end="")
type = sys.stdout.encoding
print(activator.execute().encode('utf-8').decode(type), end="")