You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2019.1.0
OS and version: OSX Sierra 10.12.6
Python version (& distribution if applicable, e.g. Anaconda): Miniconda, Python 3.6.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Expected behaviour
Select conda environment python as Python Interpreter (i.e. for my environment called ads, ~/miniconda/envs/ads/bin/python)
Open new terminal
which python returns path to selected Python Interpreter (~/miniconda/envs/ads/bin/python)
Actual behaviour
Select conda environment python as Python Interpreter
Open new terminal
which python returns system python (/usr/bin/python)
Steps to reproduce:
Create new conda environment with conda create -n ads python=3.6
Select environment python as Python Interpreter
Open new terminal
Type which python
Logs
Here's what my terminal looks like when I open a new one. The source .../activate and conda activate ads commands happened automatically and the other ones were from me.
So /Users/benlindsay/miniconda/envs/ads/bin was correctly added to PATH but it appears that my .zshrc was sourced again after doing so, which added duplicates of some paths in front of it, including /usr/bin, so that now the system python is the default interpreter instead of the conda environment interpreter. Maybe getting rid of that extra sourcing of the user's configuration file would fix the problem?
There appear to be some similar issues, like #4402, #2952, and #4077, but this one seems different in that the terminal appears to be successfully running the right commands, but having some PATH issues.
The text was updated successfully, but these errors were encountered:
Environment data
Expected behaviour
ads
,~/miniconda/envs/ads/bin/python
)which python
returns path to selected Python Interpreter (~/miniconda/envs/ads/bin/python
)Actual behaviour
which python
returns system python (/usr/bin/python
)Steps to reproduce:
conda create -n ads python=3.6
which python
Logs
Here's what my terminal looks like when I open a new one. The
source .../activate
andconda activate ads
commands happened automatically and the other ones were from me.For comparison, here's what it looks like if I open iterm2 and type the same things in:
So
/Users/benlindsay/miniconda/envs/ads/bin
was correctly added toPATH
but it appears that my.zshrc
was sourced again after doing so, which added duplicates of some paths in front of it, including/usr/bin
, so that now the system python is the default interpreter instead of the conda environment interpreter. Maybe getting rid of that extra sourcing of the user's configuration file would fix the problem?There appear to be some similar issues, like #4402, #2952, and #4077, but this one seems different in that the terminal appears to be successfully running the right commands, but having some
PATH
issues.The text was updated successfully, but these errors were encountered: