【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

相关推荐
weixin_461769404 天前
conda create 创建容器 Failed to resolve ‘repo.anaconda.com‘问题
开发语言·python·conda·repo·网络问题·无法创建
饭来_8 天前
Ubuntu 中出现 CondaToSNonInteractiveError 的解决方法
ubuntu·conda·debug
emo_2b10 天前
Pycharm配置conda解释器时遇到的问题及解决方法
linux·pycharm·conda
Είναι η κοπέλα12 天前
llama.cpp 与 GGUF 格式:本地大模型的“裸引擎“
开发语言·人工智能·pytorch·python·conda
Είναι η κοπέλα13 天前
显存计算与模型选择:你的显卡能跑多大的模型
人工智能·pytorch·python·开源·conda
天蓝蓝的本我13 天前
conda日常用到的命令积累1-登录linux,安装pycharm
linux·pycharm·conda
Είναι η κοπέλα16 天前
Python 虚拟环境:venv、conda 与 Python 版本选择全解
开发语言·python·conda
夏天拐跑了西瓜18 天前
一文入门LangChain:从框架认知到构建你的第一个AI Agent
python·langchain·conda·agent
weixin_4617694018 天前
机械臂SDK运行日志
conda·sdk
三点水-here20 天前
从 Miniconda 迁移到 Miniforge3 全记录:安装、配置、环境迁移与排错实录
python·conda