command 'conda activate' not work correctly #2577

Closed
opened 2026-01-30 22:58:48 +00:00 by claunia · 2 comments
Owner

Originally created by @li-zheng-hao on GitHub (Jul 5, 2019).

Environment

Windows build number: Microsoft Windows [version10.0.18362.175] 
Windows Terminal version (if applicable): Version: 0.2.1831.0

Any other software?
Anaconda

Steps to reproduce

  1. open terminal
  2. input-> "conda activate python3.6" (my conda environment name which use python3.6.8 )
  3. input->"python"
  4. the env is base (use python3.7) rather than python3.6

Expected behavior

image
use cmd:
image

Actual behavior

Originally created by @li-zheng-hao on GitHub (Jul 5, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [version10.0.18362.175] Windows Terminal version (if applicable): Version: 0.2.1831.0 Any other software? Anaconda ``` # Steps to reproduce 1. open terminal 2. input-> "conda activate python3.6" (my conda environment name which use python3.6.8 ) 3. input->"python" 4. the env is base (use python3.7) rather than python3.6 <!-- A description of how to trigger this bug. --> # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> ![image](https://user-images.githubusercontent.com/22129824/60701517-99410d00-9f2e-11e9-903f-6b8cb416cd81.png) use cmd: ![image](https://user-images.githubusercontent.com/22129824/60701504-88909700-9f2e-11e9-9d59-a5fa0e270668.png) # Actual behavior <!-- What's actually happening? -->
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-30 22:58:48 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 8, 2019):

You're demonstrating with powershell in the "broken" screenshot and cmd in the "working" one. This might just be how conda activate works. If it is a .cmd or .bat file that is setting environment variables, it just won't work from PowerShell. We can't change that.

@DHowett-MSFT commented on GitHub (Jul 8, 2019): You're demonstrating with powershell in the "broken" screenshot and cmd in the "working" one. This might just be how `conda activate` _works_. If it is a `.cmd` or `.bat` file that is setting environment variables, it just won't work from PowerShell. We can't change that.
Author
Owner

@agostbiro commented on GitHub (Jul 8, 2019):

For the benefit of somebody finding this from Google:

Anaconda 4.6.0 and later supports PowerShell by running conda init powershell after the installation. Having done that, Terminal works with Anaconda out of the box.

@agostbiro commented on GitHub (Jul 8, 2019): For the benefit of somebody finding this from Google: Anaconda 4.6.0 and later supports PowerShell by running `conda init powershell` after the installation. Having done that, Terminal works with Anaconda out of the box.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2577