Skip to content

Conda PATH entries added to end of $PATH #2969

@mingwandroid

Description

@mingwandroid

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): 2018.19.1
  • OS and version: macOS 10.14
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.7, Miniconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda

Actual behavior

The conda PATH entires are added to the end of $PATH (or that's what the integrated terminal tells me) meaning which python gives /usr/bin/python on macOS.

[rdonnelly@0558 conda-build]$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/opt/conda/bin
[rdonnelly@0558 conda-build]$ which python
/usr/bin/python
[rdonnelly@0558 conda-build]$

Expected behavior

The conda PATH entries should be added to the front of $PATH.

I should point out that when debugging, the right python interpreter is run, however print(os.environ['PATH']) shows the same problem, and during execution of, say, conda-build, when it fetches sources from a git repo the too-old system git executable gets found instead of the more modern one that has been installed into the conda environment.

Steps to reproduce:

  1. XXX

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions