Closed ivechan closed 5 years ago
$CONDA_PYTHON_EXE is the python interpreter for conda itself (aka base environment), not the python interpreter in the active environment. from: https://github.com/conda/conda/issues/8061#issuecomment-451751989
$CONDA_PYTHON_EXE
Using $CONDA_PYTHON_EXE will cause InvalidPythonEnvironment exception here when I use ncm2-jedi under an activated environment created by myself (not the base environment.). https://github.com/ncm2/ncm2-jedi/blob/485520af57aee528a3448d1f26bb7761dd915b0e/pythonx/ncm2_jedi.py#L27
InvalidPythonEnvironment
To be honest, I can't find any exact document about $CONDA_PREFIX or $CONDA_PREFIX, but I found some related discussions. Anyway, I tested it myself. Luckily it works well.
$CONDA_PREFIX
Related issues:
https://github.com/conda/conda/issues/2764#issue-161005495
https://github.com/davidhalter/jedi-vim/issues/907
Thanks
Why not use $CONDA_PYTHON_EXE
$CONDA_PYTHON_EXE
is the python interpreter for conda itself (aka base environment), not the python interpreter in the active environment.from: https://github.com/conda/conda/issues/8061#issuecomment-451751989
Using
$CONDA_PYTHON_EXE
will causeInvalidPythonEnvironment
exception here when I use ncm2-jedi under an activated environment created by myself (not the base environment.). https://github.com/ncm2/ncm2-jedi/blob/485520af57aee528a3448d1f26bb7761dd915b0e/pythonx/ncm2_jedi.py#L27Why should use $CONDA_PREFIX
To be honest, I can't find any exact document about
$CONDA_PREFIX
or$CONDA_PREFIX
, but I found some related discussions. Anyway, I tested it myself. Luckily it works well.Related issues:
https://github.com/conda/conda/issues/2764#issue-161005495
https://github.com/davidhalter/jedi-vim/issues/907