麻烦请教一下,anaconda突然无法正常创建环境,也无法正常激活已有环境,每次都是生成一个“An unexpected error has occurred. Conda has prepared the above report.”该怎么解决呀?
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "D:\anaconda\lib\site-packages\conda\exceptions.py", line 1124, in __call__
return func(*args, **kwargs)
File "D:\anaconda\lib\site-packages\conda\cli\main.py", line 94, in main_sourced
print(activator.execute(), end="")
File "D:\anaconda\lib\site-packages\conda\activate.py", line 171, in execute
return getattr(self, self.command)()
File "D:\anaconda\lib\site-packages\conda\activate.py", line 144, in activate
return self._finalize(self._yield_commands(builder_result), self.tempfile_extension)
File "D:\anaconda\lib\site-packages\conda\activate.py", line 134, in _finalize
tf.write(self.command_join.join(commands))
File "D:\anaconda\lib\tempfile.py", line 483, in func_wrapper
return func(*args, **kwargs)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udbad' in position 888: surrogates not allowed
`$ D:\anaconda\Scripts\conda-script.py shell.cmd.exe activate base`
environment variables:
CIO_TEST=<not set>
CONDA_EXE=D:\anaconda\condabin\..\Scripts\conda.exe
CONDA_EXES="D:\anaconda\condabin\..\Scripts\conda.exe"
CONDA_ROOT=D:\anaconda
CURL_CA_BUNDLE=<not set>
HOMEPATH=\Users\RJH
LD_PRELOAD=<not set>
PATH=D:\appliance\latex\latexmiktex\miktex\bin\x64\;D:\appliance\texlive\20
22\bin\win32;C:\gurobi952\win64\bin;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\W
indows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA Nv
DLISR;D:\appliance\matlab2019\runtime\win64;D:\appliance\matlab2019\bi
n;D:\appliance\matlab2019\polyspace\bin;D:\appliance\脙聬脙聜脗陆脗篓脙聨脙聞脗录脙戮脗
录脙聬\CTEX\CTeX;D:\a;pliance\脙聬脙聜脗陆脗篓脙聨脙聞脗录脙戮脗录脙聬\CTEX\CTeX\Packages\cte
x\bin;D:\a;pliance\脙聬脙聜脗陆脗篓脙聨脙聞脗录脙戮脗录脙聬\CTEX\CTeX;D:\a;pliance\脙聬脙聜脗 陆脗
篓脙聨脙聞脗录脙戮脗录脙聬\CTEX\CTeX\Packages\cct\bin;D:\a;pliance\脙聬脙聜脗陆脗篓脙聨脙聞脗 录脙戮
脗录脙聬\CTEX\CTeX;D:\a;pliance\脙聬脙聜退老潮潴慳獮骟ꏑ\udbadᴰ䯰Ȍ;D:\anaconda;D:\anaconda\
Library\mingw-
w64\bin;D:\anaconda\Library\usr\bin;D:\anaconda\Library\bin;D:\anacond
a\Scripts;D:\appliance\Manaconda;D:\appliance\Manaconda\Library\mingw-
w64\bin;D:\appliance\Manaconda\Library\usr\bin;D:\appliance\Manaconda\
Library\bin;D:\appliance\Manaconda\Scripts;D:\appliance\python\Scripts
\;D:\appliance\python\;C:\Users\RJH\AppData\Local\Microsoft\WindowsApp
s;C:\Program Files\Bandizip\;D:\appliance\pycharm\PyCharm Community
Edition 2021.3.3\bin;;D:\appliance\latex\miktex\miktex\bin\x64\
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : None
user config file : C:\Users\RJH\.condarc
populated config files : C:\Users\RJH\.condarc
conda version : 23.1.0
conda-build version : 3.23.3
python version : 3.10.9.final.0
virtual packages : __archspec=1=x86_64
__cuda=11.7=0
__win=0=0
base environment : D:\anaconda (writable)
conda av data dir : D:\anaconda\etc\conda
conda av metadata url : None
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
package cache : D:\anaconda\pkgs
C:\Users\RJH\.conda\pkgs
C:\Users\RJH\AppData\Local\conda\conda\pkgs
envs directories : D:\anaconda\envs
C:\Users\RJH\.conda\envs
C:\Users\RJH\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/23.1.0 requests/2.28.1 CPython/3.10.9 Windows/10 Windows/10.0.19044
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.