python运行单细胞umap报错

python运行单细胞umap报错

> 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
  • 发表于 2022-03-21 14:20
  • 阅读 ( 1901 )
  • 分类:python

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

698 篇文章

作家榜 »

  1. omicsgene 698 文章
  2. 安生水 347 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 82 文章
  6. 红橙子 78 文章
  7. rzx 74 文章
  8. CORNERSTONE 72 文章