【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

相关推荐
Echo_NGC22371 天前
【论文解读】Attention Is All You Need —— AI 时代的“开山之作“,经典中的经典(transformer小白导读)
人工智能·python·深度学习·神经网络·机器学习·conda·transformer
何中应1 天前
Conda安装&使用
python·conda·python3.11
qq_229058012 天前
conda中安装 rdkit版本的postgresql然后在Win11中使用虚拟环境里的rdkit
数据库·postgresql·conda
独隅5 天前
Anaconda被误删后抢救手册
conda
矢志航天的阿洪5 天前
手动安装Gurobi并配置gurobipy到Python环境(Windows/Conda)
windows·python·conda
GL_Rain6 天前
conda通过environment.yml创建虚拟环境(指定路径)报错解决教程
conda
雕刻刀9 天前
linux中复制conda环境
linux·python·conda
乐园游梦记9 天前
在pycharm中添加Conda创建的openmmlab虚拟环境作为解释器
ide·pycharm·conda
贵沫末10 天前
Python——图像处理项目Conda环境搭建
开发语言·python·conda
佳xuan10 天前
wsl(linux)安装miniconda及虚拟环境
linux·人工智能·conda