Terminal: command 'conda activate' not work correctly

Created on 5 Jul 2019  路  2Comments  路  Source: microsoft/terminal

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

Needs-Tag-Fix Resolution-External

Most helpful comment

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.

All 2 comments

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.

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.

Was this page helpful?
0 / 5 - 0 ratings