【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

相关推荐
砍材农夫14 天前
python环境|conda安装和使用(1)
开发语言·后端·python·conda
匆匆整棹还14 天前
mamba的安装和版本对应
conda
2601_9618752415 天前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
没有钱的钱仔16 天前
自动创建conda虚拟环境,并安装依赖包
conda
砍材农夫17 天前
python环境|pip|uv|venv|Conda区别
后端·python·conda·pip·uv
pixelpilot118 天前
Conda:跨平台的二进制包管理器
其他·conda
lg_cool_18 天前
使用conda管理python运行环境并关联vscode
vscode·python·conda
javajenius18 天前
Pixi:用 Rust 重写 Conda 体验的包管理工具
开发语言·其他·rust·conda
小白弄潮儿19 天前
Conda 使用入门指南
conda
DFT计算杂谈19 天前
WannierTools输入文件wt.in一键批量生成脚本
java·前端·chrome·python·算法·conda