rpy2 install problems on debian

风格不统一 提交于 2019-12-02 06:23:46

Please try

sudo apt-get install python-rpy2

(or use whichever packaging frontend you prefer) as the package exists within the distribution.

If you compile R with

./configure --enable-R-shlib, then R is installed in /usr/local/lib/R

So you can add this lines to .bashrc, for you and root user

export R_HOME=/usr/local/lib/R
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$R_HOME/lib

Then you can install from pip or build from tarball

nom-mon-ir

As pointed in rpy2 installation on Ubuntu, sometimes a missing python-dev (python-devel in RHEL) may cause these issues. You can fix by either

    sudo apt-get install python-dev

or

    sudo yum install python-devel

Or other OS specific instruction for installing python-dev[el]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!