Issues with installing rpy2==3.4.5

Viewed 28

When I am installing rpy2 in requirement.txt, and run

pip install -r requirement.txt

Terminal

With problem:

Error: rpy2 in API mode cannot be built without R in the PATH or R_HOME defined. Correct this or force ABI mode-only by defining the environment variable RPY2_CFFI_MODE=ABI['cffi>=1.10.0', 'jinja2', 'pytz', 'tzlocal']

How can I solve this?

Python version: Python 3.8.13

0 Answers
Related