> library(umap)
> library(reticulate)
> iris.data = iris[, grep("Sepal|Petal", colnames(iris))]
> iris.umap_learn = umap(iris.data, method="umap-learn")
Error: Python shared library not found, Python bindings not loaded.
解决办法:重新编译python : ./configure --enable-shared --prefix=/share/work/biosoft/python/Python-v3.8.12 --enable-optimizations
./configure --enable-shared --enable-optimizations --with-openssl=/share/work/biosoft/openssl/openssl-v1.1.1n/ --prefix=/share/work/biosoft/python/Python-v3.8.12 LDFLAGS="-Wl,-rpath=/share/work/biosoft/python/Python-v3.8.12/lib/" LD_LIBRARY_PATH="/share/work/biosoft/python/Python-v3.8.12/lib/" CPPFLAGS="-I/share/work/biosoft/python/Python-v3.8.12/include -I/share/work/biosoft/openssl/openssl-v1.1.1n/include/openssl"
https://community.rstudio.com/t/importing-python-packages-in-rstudio-using-reticulate/80140