Conda 命令行不识别

阅读量:[object Object]

Conda 4.6 版本之后,在系统环境变量中需要添加的路径进行了变更

必须在环境变量中 PATH 的目录下添加相应的径

Things have been changed after conda 4.6.

Programs “Anaconda Prompt” and “Anaconda Powershell” expose the command conda for you automatically. Find them in your startup menu.

If you don’t wanna use the prompts above and try to make conda available in a normal cmd.exe and a Powershell. Read the following content.

Expose conda in Every Shell

The purpose of the following content is to make command conda available both in cmd.exe and Powershell on Windows.

If you have already checked “Add Anaconda to my PATH environment variable” during Anaconda installation, skip step 1.

Conda 命令行不识别 figure 1.png

Anaconda installation options on Windows

  1. If Anaconda is installed for the current use only, add %USERPROFILE%\Anaconda3\condabin (I mean condabin, not Scripts) into the environment variable PATH (the user one). If Anaconda is installed for all users on your machine, add C:\ProgramData\Anaconda3\condabin into PATH.
  2. Open a new Powershell, run the following command once to initialize conda. conda init

These steps make sure the conda command is exposed into your cmd.exe and Powershell.

Extended Reading: conda init from Conda 4.6

Caveat: Add the new \path\to\anaconda3\condabin but not \path\to\anaconda3\Scripts into your PATH. This is a big change introduced in conda 4.6.

Activation script initialization fron conda 4.6 release log

Conda 4.6 adds extensive initialization support so that more shells than ever before can use the new conda activate command. For more information, read the output from conda init –help We’re especially excited about this new way of working, because removing the need to modify PATH makes Conda much less disruptive to other software on your system.

In the old days, \path\to\anaconda3\Scripts is the one to be put into your PATH. It exposes command conda and the default Python from “base” environment at the same time.

After conda 4.6, conda related commands are separated into condabin. This makes it possible to expose ONLY command conda without activating the Python from “base” environment.

References

反向链接

到头儿啦~

局部关系图

010 working deck 工作台成瘾消费成瘾Strategic thinking 战略思维Learner 学习Executing 执行力Influencing 影响力Harmony 和谐Restorative 排难Empathy 体谅Intellection 思维Context 回顾回顾 + 思维回顾 + 学习Relator 交往分析 + 回顾Individualization 个别Responsibility 责任Consistency 公平公平 + 个别公平 + 责任Input 搜集Ideation 理念Deliberative 审慎Focus 专注Connectedness 关联Discipline 纪律Achiever 成就Analytical 分析Psychology tools 心理学工具Relationship building 关系建立盖洛普优势自我分析Coordinate transformation 坐标系变换Cartesian coordinates 笛卡尔坐标130 industries & companies 行业与公司Continuous variable 连续变量Coordinate system 坐标系Coordinate 坐标Covariance 协方差Discrete variable 离散变量Homogeneous coordinates 齐次坐标Kalman filter 卡尔曼滤波Kriging 克里金法Linear algebra 线性代数Probability theory 概率论Statistics 统计学Vector 向量卡尔曼滤波基本模型Human brain 人脑Neuroscience 神经科学C++Conda 命令行不识别CondaDatabase 数据库DockerException chainingLinuxMakefileProgramming languages 编程语言Serious pythonSoftware 软件Wsl2 & docker & postgresql 安装CronUdev命令行显示虚拟环境名称320 computer science 计算机科学Applied computer science 应用计算机科学原子化笔记费曼式笔记模板化笔记知识网络常青笔记个人 okr 系统个人 okr 系统 工作维度个人 okr 系统 学习维度个人 okr 系统 财务维度个人资产负债表个人利润表个人 okr 系统 生活维度个人 okr 系统 复盘复盘四步法Deep neural network 深度神经网络Learning 学习表征模型学习的过程学得好知识在大脑中的存储形式第一章 绪论330 automation 自动化Av coordinate frameAv coordinate transformationQq音乐导出幸福的勇气:“自我启发之父”阿德勒的哲学课2被讨厌的勇气:“自我启发之父”阿德勒的哲学课认知觉醒:开启自我改变的原动力

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8