-
Notifications
You must be signed in to change notification settings - Fork 333
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
[VS-Code] Reticulate is forcefully overriding the requested virtual environment and picking the default python value. Happens with both use_python and use_virtualenv. Due to radian
package VS Code setting.
#1314
Comments
Are you observing this in the RStudio IDE, in the terminal, or both? |
Terminal (VS Code), i haven't tried RStudio |
Can you please try in the builtin Terminal.app that comes bundled with macOS? |
I tried changing the VS Code python interpreter but didn't change anything. |
This means that Python symbols were already loaded into the current process when reticulate tried to initialize it. What VSCode extensions do you have enabled? Does disabling them fix the issue? |
Thanks for your epic help. Problem was that I was using R-extension with Radian, and I had
I updated the path to the virtual env and this works. (Note, just setting VS Code's python interpreter doesn't work, as this Radian setting overrrides it.) When I have
And now my code works! Thanks @t-kalinowski !! |
radian
package VS Code setting.
This discussion is super helpful! |
Issue Description
reticulate
is forcefully loading the same python package despite settingRETICULATE_PYTHON
orPYTHONPATH
.All examples below are a new R session. You can see that no matter the settings I provide, it's forcing the wrong version.
Default Behavior
Starting a new session, I get:
Trying use_virualenv()
Now I create a new R session and create a new virtual env, but when I use the
use_virtualenv()
its overridden by the default version:set RETICULATE_PYTHON
If I try to set the RETICULATE_PYTHON, it doesn't do anything:
Using use_python
Session Info
Clean R sessionInfo():
The text was updated successfully, but these errors were encountered: