I have previously installed rpy2 on my PC using the appropriate wheels from here. However, now I need to upgrade to the latest version of rpy2. I did the following: pip install rpy2 --upgrade But this did not work out, and gave me the following error: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. This same error used to pop up when I was first trying to install rpy2 and ended up downloading the precompiled binary fro here In my system environment variables I have: R_USER: > C:\Users\96171\AppData\Local\Programs\Python\Python36\Lib\site-packages\rpy2 R_HOME: > C:\Program Files\R\R-3.6.2 What should I do to upgrade rpy2 to the latest version, I have version 2.9.5 ? Continue reading...