Hi guys,
I am struggling with reticulate. All the time I try to run some pyhton code in a python script, I get the following error.
I have tried evertything! Latest Rstudio, R, reticulate, Rcpp, Python.... nothing works. I really don't know what I am doing wrong.
Here are some additional information.
> library(reticulate)
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 21.10
Matrix products: default
BLAS/LAPACK: /opt/OpenBLAS/lib/libopenblas_haswellp-r0.3.18.so
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] reticulate_1.24-9000
loaded via a namespace (and not attached):
[1] compiler_4.1.2 Matrix_1.3-4 tools_4.1.2 Rcpp_1.0.7.3 grid_4.1.2 jsonlite_1.8.0 png_0.1-7
[8] lattice_0.20-45
> py_discover_config()
python: /usr/bin/python3
libpython: /usr/lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.so
pythonhome: //usr://usr
version: 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2.0]
numpy: /home/ahmed/.local/lib/python3.9/site-packages/numpy
numpy_version: 1.22.2
Thank you very much.
Best wishes