-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"source ./miniconda-py-3.9.20/bin/activate" does not give access to conda when running "python -m conda" #2811
Comments
Super Detailed BackgroundI am using pyenv to install independent version of python. I ran the following commands to setup and install a virtual environment.
Now when I source this environment I SHOULD be using Python 3.9.20 with all of the miniconda packages (including the
Trying to run
I am guessing this is due to the way the Here is my
However for whatever reason, the Work Around that breaks JupyterIf I instead install pyenv-virtualenv as a plugin to This will let me use the
ObservationBy observing the way the
|
Goal
I want to be able to activate my miniconda virtual environment and then run
conda
andjupyter
like this:I want to do this because when my virtual environment is activated I know that I am running my specified version of python, and using the verbose
python -m <module_name>
syntax ensures I am running the subcommand of my specified python version, and not a globally installed equivalent.The issue is, I can't seem to get this to work reliably. After installing my specified miniconda python version with
pyenv
, I then create a virtual environment using thevirtualenv
command. This gives me access to dopython -m jupyter
but notpython -m conda
.If I install
pyenv-virtualenv
as apyenv
plugin and then dopyenv install miniconda3-3.9-24.9.2-0
and then runpyenv activate <python_version_name>
, like inpyenv activate miniconda3-3.9-24.9.2-0
, then I will be able to runpython -m conda
but notpython -m jupyter
.As an edge case, I noticed if I instead use
pyenv-virtualenv
to create a new miniconda environment (instead of using the default one) by giving it a custom name with thepyenv <python_version> <environment_name>
command and then activate the environment withpyenv activate <environment_name>
I will not be able to usepython -m conda
norpython -m jupyter
.I am not sure what I am doing wrong... I just want to be able to run both subcommands in a miniconda virtual environment using the verbose
python -m <module_name>
syntax.The text was updated successfully, but these errors were encountered: