Skip to content
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

Wrong PATH with use_condaenv when we choose any env except base one #1587

Open
latot opened this issue Apr 15, 2024 · 0 comments
Open

Wrong PATH with use_condaenv when we choose any env except base one #1587

latot opened this issue Apr 15, 2024 · 0 comments

Comments

@latot
Copy link

latot commented Apr 15, 2024

When in conda we run conda activate env, PATH changes to the next thing:

PATH=>/home/pipe/miniconda3/envs/env/bin:/home/pipe/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin

This as first is important /home/pipe/miniconda3/envs/env/bin because is the one who give us access to the env env.

But in R:

reticulate::use_condaenv("env")
Sys.getenv("PATH")
[1] "/home/pipe/.local/share/r-miniconda/condabin:/home/pipe/.local/share/r-miniconda/bin:/home/pipe/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin"

The path to the conda env env is missing, still is on the base one, so we can't use the actual binaries of the env.

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant