退出 conda base 虚拟环境回到系统环境

退出 conda base 虚拟环境回到系统环境

1. Deactivating an environment

To deactivate an environment, type: conda deactivate

Conda removes the path name for the currently active environment from your system command.

To simply return to the base environment, it’s better to call conda activate with no environment specified, rather than to try to deactivate.

If you run conda deactivate from your base environment, you may lose the ability to run conda at all. Don’t worry, that’s local to this shell - you can start a new one. However, if the environment was activated using --stack (or was automatically stacked) then it is better to use conda deactivate.

conda activate and conda deactivate only work on conda 4.6 and later versions.

For conda versions prior to 4.6, run:

  • Windows: activate or deactivate
  • Linux and macOS: source activate or source deactivate

退出与进入虚拟环境 conda base.

(base) yongqiang@famu-sys:~$ conda deactivate
yongqiang@famu-sys:~$
yongqiang@famu-sys:~$ conda activate
(base) yongqiang@famu-sys:~$
(base) yongqiang@famu-sys:~$ conda deactivate
yongqiang@famu-sys:~$

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/
[2] Managing environments, https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值