I have a conda environment, cenv. While activated, I've installed pipenv via:
(cenv) % conda install -c conda-forge pipenv
I created a pipenv env in a repo by installing a package I'll need, in this case the GDAL bindings, gdal:
(cenv) % pipenv install gdal
All good so far. Now when I want to launch the pipenv shell to see if my installation worked in python, I run:
(cenv) % pipenv shell
And I get:
Launching subshell in virtual environment…
. /home/<user>/.venvs/cenv-<scramble>/bin/activate
(base) % . /home/<user>/.venvs/cenv-<scramble>/bin/activate
(modis_lst) (base) %
So I get kicked out of the (cenv) conda env and put in the system conda env, (base), which is not set up how I need. I can deactivate the (base) env, and activate the (cenv) env, but I'm looking for a better solution. Because I'm not sure I could use pipenv run in this way.
How can I start a pipenv shell or run pipenv while choosing the conda env I want to use? Thanks :)