-
Notifications
You must be signed in to change notification settings - Fork 328
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
NUMPY NOT FOUND BUT ACTUALLY INSTALLED #1593
Comments
My best guess is that this is a different manifestation of a binary incompatibility between the R build and the Conda built NumPy. Do you see the same error if you use a virtualenv? |
Thank you for your quick reply! I tried to create a virtualenv, and use it in RSTUDIO, and still get numpy not found. If the incompatibility exisits, how can I solve it? |
What is the output from running this? library(reticulate)
install_python("3.10:latest")
virtualenv_create(force = TRUE, version = "3.10")
.rs.restartR() # restart R manually if outside RStudio
reticulate::py_config() |
I always have this system python path numpy loaded. |
Do you know how the other Numpy is getting placed on Is Sys.getenv("PYTHONPATH") Perhaps some other mechanism? |
It might make sense for us to invoke |
Thank you! I reset my PYTHONPATH, removed the system python library, then it works! |
I have conda installed on the server, created an environment, installed all packages needed.
I checked conda, python, library as following.
In Rstudio, I setup env variable in .Renviron as
But NUMPY NOT FOUND!
NOTE: Python version was forced by RETICULATE_PYTHON
And I even forced it to install, but no help.
reticulate::py_install(envname = "~/miniconda3/envs/trialbot", python_version = '3.10.14',
packages = "numpy", pip = TRUE, pip_ignore_installed = TRUE)
What can I do?
The text was updated successfully, but these errors were encountered: