【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

相关推荐
王小义笔记17 小时前
WSL(Linux)如何安装conda
linux·运维·conda
赖亦无20 小时前
【水动力学】06 Linux + Conda 环境下源码编译安装 pypims (CUDA加速) 避坑指南
linux·运维·conda·pypims·水动力学
Uncertainty!!2 天前
docker打包本地conda虚拟环境并远程部署
docker·容器·conda
kishu_iOS&AI2 天前
Conda 简要说明与常用指令
python·安全·conda
呆呆小孩2 天前
Anaconda 被误删抢救手册:从绝望到重生
python·conda
大连好光景2 天前
conda管理包还是pip管理包
python·conda·pip
ricky_fan3 天前
(OpenAI)Codex 安装、部署使用方式
python·macos·conda·vim
Hello.Reader5 天前
PySpark 安装保姆级教程pip、Conda、手动安装、Spark Connect 一次讲透(一)
python·spark·conda·pip
Python大数据分析@5 天前
Python包管理器 uv是否替代conda?
python·conda·uv
万里沧海寄云帆5 天前
一步修复Win11下conda无法激活问题
linux·python·conda