【After Anaconda installation,conda can not run】

After Anaconda installation,conda can not run

Questions

After Anaconda installation, conda command fails with "ImportError: no module named conda.cli"

After I open "Anaconda Prompt",the specific error is as follows:

bash 复制代码
Traceback (most recent call last):
  File "D:\Tools_SoftWare\Anaconda3\install\Scripts\conda-script.py", line 11, in <module>
    from conda.cli import main
ModuleNotFoundError: No module named 'conda'
Failed to run 'conda activate D:\Tools_SoftWare\Anaconda3\install'.

Solution

You need to delete the 'PYTHONHOME' and 'PYTHONPATH' environment variables.

I forgot the purpose of these two environment variables, but their presence does conflict with Anaconda.

PYTHONHOME

C:\Users\12114\AppData\Local\Programs\Python\Python312

PYTHONPATH

C:\Users\12114\AppData\Local\Programs\Python\Python312

The same question can be referred to

https://stackoverflow.com/questions/19825250/after-anaconda-installation-conda-command-fails-with-importerror-no-module-na

相关推荐
Nightmare0045 天前
切换conda环境的时候输出zstandard could not be imported. Running without .conda support.
开发语言·python·conda
墨染天姬5 天前
【AI】conda常用指令
人工智能·conda
SCBAiotAigc5 天前
2026.2.25:conda与uv并存时,如何取消base激活
人工智能·python·conda·uv
何伯特6 天前
ROS与Conda的兼容性问题深度解析与解决方案
conda·ros
Autumn72997 天前
【系统重装】PYTHON 入门——速通版
开发语言·python·conda·cuda
C系语言7 天前
Anaconda、conda环境命令
conda
cooldream20099 天前
Conda 报错 InvalidArchiveError 深度排查与彻底解决指南:从缓存损坏到环境重建的完整思路
缓存·conda
C系语言9 天前
Conda查看虚拟环境
conda
Lw老王要学习10 天前
Windows 下 Miniconda 安装与 conda 命令无法识别问题解决指南
windows·llm·conda·agent
思绪无限11 天前
使用Conda创建Python环境并在PyCharm中配置运行项目
python·pycharm·conda·安装教程·python环境配置·环境配置教程