喝凉白开都长肉的大胖子 2023-04-13 18:34 采纳率: 16.7%
浏览 32

anaconda无法激活环境

麻烦请教一下,anaconda突然无法正常创建环境,也无法正常激活已有环境,每次都是生成一个“An unexpected error has occurred. Conda has prepared the above report.”该怎么解决呀?

img



# >>>>>>>>>>>>>>>>>>>>>> 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.


img

  • 写回答

1条回答 默认 最新

  • 斯克714 2023-04-14 14:36
    关注

    应该是中文路径的原因,改成英文就好

    评论

报告相同问题?

问题事件

  • 创建了问题 4月13日

悬赏问题

  • ¥15 没输出运行不了什么问题
  • ¥20 输入import torch显示Intel MKL FATAL ERROR,系统驱动1%,: Cannot load mkl_intel_thread.dll.
  • ¥15 点云密度大则包围盒小
  • ¥15 nginx使用nfs进行服务器的数据共享
  • ¥15 C#i编程中so-ir-192编码的字符集转码UTF8问题
  • ¥15 51嵌入式入门按键小项目
  • ¥30 海外项目,如何降低Google Map接口费用?
  • ¥15 fluentmeshing
  • ¥15 手机/平板的浏览器里如何实现类似荧光笔的效果
  • ¥15 盘古气象大模型调用(python)