【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

相关推荐
jiayi_199912 小时前
Linux 容器安装 conda 和 pip
linux·conda·pip
ydl11282 天前
安装Anaconda
人工智能·conda
郁大锤3 天前
conda虚拟环境占用空间太多,如何清理?
linux·conda
be_humble3 天前
conda 环境配置
conda
课堂随想5 天前
vscode关闭自动激活conda环境
vscode·conda
人工智能训练6 天前
在 Ubuntu 系统中利用 conda 创建虚拟环境安装 sglang 大模型引擎的完整步骤、版本查看方法、启动指令及验证方式
linux·运维·服务器·人工智能·ubuntu·conda·sglang
Will_Ye6 天前
在Ubuntu中使用Docker打包程序(Conda, pip)
ubuntu·docker·conda
我狸才不是赔钱货6 天前
Python的“环境之殇”:从Venv到Conda的终极抉择
开发语言·python·conda
被放养的研究生7 天前
conda常用命令
conda
开心-开心急了8 天前
conda 命令使用进阶指南 minconda
conda·1024程序员节·minconda