Skip to content

Conda Activation in New Terminal on Mac OS #4077

Closed

Description

Environment data

  • VS Code version: 1.30.2
  • Extension version: 2018.12.1
  • OS and version: Mac OS 10.10.5
  • Python version : 2.7.15
  • Conda: 4.5.11-py27_0

Expected behaviour

When opening a new terminal, with a conda environment selected,
the conda environment should be activated:

>> source activate env-name

(env-name) >>

or

>> source /anaconda/envs/env-name/bin/activate env-name

(env-name) >>

Actual behaviour

When the current automated command is run, it only loads the base environment:

>> source /anaconda/envs/env-name/bin/activate

(base) >>

This may actually be a bug in conda, but the activation scripts in both /anaconda/bin/activate
and /anaconda/envs/env-name/bin/activate are the same:

#!/bin/sh
_CONDA_ROOT="//anaconda"
\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $?
_conda_activate "$@"

Steps to reproduce:

  1. Open new terminal with conda environment selected.

Activity

  1. ghost added
    triage-needed
    on Jan 22, 2019
  2. DonJayamanne commented on Jan 23, 2019

    @DonJayamanne

    Duplicate of #4001

  3. ghost removed
    triage-needed
    on Jan 23, 2019
  4. locked as resolved and limited conversation to collaborators on Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions