I wanted to install some packages in editable mode (pip install -e
) in a conda environment. I expected the source files to appear in <env name>/src
, but they ended up in the current working directory.
You can see the details in the corresponding conda ticket (https://github.com/conda/conda/issues/5861).
I'm cross posting the issue so that both project teams are aware and can discuss what's the best approach to resolve this.
I don't think we'd be adding a special case for conda in pip's virtual environment detection logic.
@kalefranz Is it possible for conda to appropriately modify its environment to look like a virtual environment?
In particular, core Python now has sys.base_executable
, with "being in a virtual environment" being identifiable by sys.base_executable
!= sys.executable
. If conda were to work with that, it would follow core Python standards, and would automatically be recognised by pip (as well as by any other tool that neededto know if it was running in a virtual environment).
Most helpful comment
In particular, core Python now has
sys.base_executable
, with "being in a virtual environment" being identifiable bysys.base_executable
!=sys.executable
. If conda were to work with that, it would follow core Python standards, and would automatically be recognised by pip (as well as by any other tool that neededto know if it was running in a virtual environment).