When I am installing rpy2 in requirement.txt, and run
pip install -r requirement.txt
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