Powershell 无法进入base

PS C:\Users\****> conda init
no change     E:\Anaconda\Scripts\conda.exe
no change     E:\Anaconda\Scripts\conda-env.exe
no change     E:\Anaconda\Scripts\conda-script.py
no change     E:\Anaconda\Scripts\conda-env-script.py
no change     E:\Anaconda\condabin\conda.bat
no change     E:\Anaconda\Library\bin\conda.bat
no change     E:\Anaconda\condabin\_conda_activate.bat
no change     E:\Anaconda\condabin\rename_tmp.bat
no change     E:\Anaconda\condabin\conda_auto_activate.bat
no change     E:\Anaconda\condabin\conda_hook.bat
no change     E:\Anaconda\Scripts\activate.bat
no change     E:\Anaconda\condabin\activate.bat
no change     E:\Anaconda\condabin\deactivate.bat
no change     E:\Anaconda\Scripts\activate
no change     E:\Anaconda\Scripts\deactivate
no change     E:\Anaconda\etc\profile.d\conda.sh
no change     E:\Anaconda\etc\fish\conf.d\conda.fish
no change     E:\Anaconda\shell\condabin\Conda.psm1
no change     E:\Anaconda\shell\condabin\conda-hook.ps1
no change     E:\Anaconda\Lib\site-packages\xontrib\conda.xsh
no change     E:\Anaconda\etc\profile.d\conda.csh
no change     C:\Users\l_zk\Documents\WindowsPowerShell\profile.ps1
no change     HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
No action taken.
PS C:\Users\****> conda activate base
Invoke-Expression : 所在位置 行:1 字符: 571
+ ... s;E:\python3;E:\bandizip;E:\jdk-21.0.2\bin;"E:\jdk-21.0.2\bin;E:\jdk- ...
+                                                 ~~~~~~~~~~~~~~~~~
表达式或语句中包含意外的标记“E:\jdk-21.0.2\bin”。
所在位置 E:\Anaconda\shell\condabin\Conda.psm1:76 字符: 9
+         Invoke-Expression -Command $activateCommand;
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : UnexpectedToken,Microsoft.PowerShell.Commands.InvokeExpressionCommand

anaconda已更新至最新版本,初始化之后无法进入base虚拟环境,已经检查过环境变量,jdk可正常运行,Java环境正常,环境变量也没有意外引号出现,
E:\Anaconda\shell\condabin\Conda.psm1文件也没有修改过

环境如下:

PS C:\Users\****> conda --version
conda 24.4.0
PS C:\Users\****> anaconda --version
anaconda Command line client (version 1.12.3)
PS C:\Users\*****> java --version
java 21.0.2 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)
PS C:\Users\*****> nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Jan_28_19:41:49_Pacific_Standard_Time_2021
Cuda compilation tools, release 11.2, V11.2.142
Build cuda_11.2.r11.2/compiler.29558016_0

希望有大佬解决一下这个问题,非常感谢

然后我删除了E:\Anaconda\shell\condabin\Conda.psm1重新init,在E:\Anaconda\shell\condabin\重新生成了conda-hook.ps1,Conda.psm1文件,之后activate仍然提示未init

安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows

Import-Module : 未能加载指定的模块“E:\Anaconda\shell\condabin\Conda.psm1”,因为在任何模块目录中都没有找到有效模块文件
。
所在位置 行:7 字符: 1
+ Import-Module "$Env:_CONDA_ROOT\shell\condabin\Conda.psm1" -ArgumentL ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (E:\Anaconda\shell\condabin\Conda.psm1:String) [Import-Module], Fil
   eNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand


CondaError: Run 'conda init' before 'conda activate'

加载个人及系统配置文件用了 700 毫秒。
PS C:\Users\*****> conda init
no change     E:\Anaconda\Scripts\conda.exe
no change     E:\Anaconda\Scripts\conda-env.exe
no change     E:\Anaconda\Scripts\conda-script.py
no change     E:\Anaconda\Scripts\conda-env-script.py
no change     E:\Anaconda\condabin\conda.bat
no change     E:\Anaconda\Library\bin\conda.bat
no change     E:\Anaconda\condabin\_conda_activate.bat
no change     E:\Anaconda\condabin\rename_tmp.bat
no change     E:\Anaconda\condabin\conda_auto_activate.bat
no change     E:\Anaconda\condabin\conda_hook.bat
no change     E:\Anaconda\Scripts\activate.bat
no change     E:\Anaconda\condabin\activate.bat
no change     E:\Anaconda\condabin\deactivate.bat
no change     E:\Anaconda\Scripts\activate
no change     E:\Anaconda\Scripts\deactivate
no change     E:\Anaconda\etc\profile.d\conda.sh
no change     E:\Anaconda\etc\fish\conf.d\conda.fish
modified      E:\Anaconda\shell\condabin\Conda.psm1
no change     E:\Anaconda\shell\condabin\conda-hook.ps1
no change     E:\Anaconda\Lib\site-packages\xontrib\conda.xsh
no change     E:\Anaconda\etc\profile.d\conda.csh
no change     C:\Users\l_zk\Documents\WindowsPowerShell\profile.ps1
no change     HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

==> For changes to take effect, close and re-open your current shell. <==

PS C:\Users\*****> conda activate base

CondaError: Run 'conda init' before 'conda activate'


PS C:\Users\******> conda init
no change     E:\Anaconda\Scripts\conda.exe
no change     E:\Anaconda\Scripts\conda-env.exe
no change     E:\Anaconda\Scripts\conda-script.py
no change     E:\Anaconda\Scripts\conda-env-script.py
no change     E:\Anaconda\condabin\conda.bat
no change     E:\Anaconda\Library\bin\conda.bat
no change     E:\Anaconda\condabin\_conda_activate.bat
no change     E:\Anaconda\condabin\rename_tmp.bat
no change     E:\Anaconda\condabin\conda_auto_activate.bat
no change     E:\Anaconda\condabin\conda_hook.bat
no change     E:\Anaconda\Scripts\activate.bat
no change     E:\Anaconda\condabin\activate.bat
no change     E:\Anaconda\condabin\deactivate.bat
no change     E:\Anaconda\Scripts\activate
no change     E:\Anaconda\Scripts\deactivate
no change     E:\Anaconda\etc\profile.d\conda.sh
no change     E:\Anaconda\etc\fish\conf.d\conda.fish
no change     E:\Anaconda\shell\condabin\Conda.psm1
no change     E:\Anaconda\shell\condabin\conda-hook.ps1
no change     E:\Anaconda\Lib\site-packages\xontrib\conda.xsh
no change     E:\Anaconda\etc\profile.d\conda.csh
no change     C:\Users\l_zk\Documents\WindowsPowerShell\profile.ps1
no change     HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
No action taken.
PS C:\Users\*****> conda activate base

CondaError: Run 'conda init' before 'conda activate'