-
Notifications
You must be signed in to change notification settings - Fork 329
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
reticulate marks numpy as missing in Anaconda installation #367
Comments
I encountered the same issue.:
Curiously, once Python has been initialised, it is able to import
This is probably because the
Using a conda environment ( As noted by kevinushey, this is an issue with the PATH in Windows. During installation, Anaconda on Windows suggests not adding Python to the path. Without Python in the path, One solution to this is to add the Anaconda
Alternatively users could load R/Rstudio from a conda command prompt that has already set the PATH correctly. A more permanent fix might be to import numpy after initialising Python, rather than simply storing the result from running the |
I encountered a similar error trying to run an R-script that uses 'reticulate' to import the 'umap' package. Others have also encountered the error. satijalab/seurat#958 Here is my setup using a python 3.7 conda environment
the script output is
|
thank you @twlee79 !!! |
@kevinushey We should see if there is something we can do during configuration (i.e. fixup the PATH proactively when we know this is going to happen) so that no workaround is required. |
I'll take a look. |
I have a similar issue with
in Debian 9. It is very difficult to get reticulate working. Just by luck (not now for the moment). |
I tried all the solutions above, all not work for me. `
NOTE: Python version was forced by use_python function
NOTE: Python version was forced by RETICULATE_PYTHON` |
And here I am in 2022. Troubleshooting the same issue closed years ago. How did my life get to that?🥲 |
this helped me: |
So, a solution that worked for me was to make |
I also meet this error in linux system. I run reticulate in r-base created by conda. If I install numpy by pip, it produces this error. But it does not have this error when I install numpy by using conda. |
I see:
This was with Anaconda 3 just installed today. If I try to import
numpy
from the console directly, I see:But attempting to import
numpy
works fine if run from the Anaconda Prompt. I'm guessing it's because it puts a whole bunch of stuff on the PATH:Do we need to do that as well before running the config script? (It's worth noting that all of this stuff becomes available on the PATH after Python has been initialized)
The text was updated successfully, but these errors were encountered: