V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
MasterCai
V2EX  ›  程序员

conda 切换环境失败

  •  
  •   MasterCai · Oct 19, 2021 · 2151 views
    This topic created in 1652 days ago, the information mentioned may be changed or developed.

    最近使用 conda 的时候遇到一个 bug,例如我的 conda 里有两个环境 A 和 B,当我在 base 环境中时,我使用conda activate B后,无法切换到 B 环境中(使用which python查看,python 是在 A 环境中的),只能通过先切换到 A 环境然后再切换到 B 环境才能解决。有没有人遇到过类似的 bug ? conda 版本是 conda 4.10.3,使用 miniconda 安装。

    2 replies    2021-10-20 11:26:11 +08:00
    leven87
        1
    leven87  
       Oct 20, 2021
    比较下 A,B 环境有什么不同,那弄个 C 环境呢。
    forbxy
        2
    forbxy  
       Oct 20, 2021
    source conda/bin/activate B
    或者直接绝对路径用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5908 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 01:55 · PVG 09:55 · LAX 18:55 · JFK 21:55
    ♥ Do have faith in what you're doing.