Note: This is just my personal record in case I forget how to operate.
rpy2 is a package connect Python with R, i.e. call R functions from Python.
Follow the link below to install rpy2 for Windows without dealing with unwanted troubles.https://anaconda.zendesk.com/hc/en-us/articles/360023857134-Setting-up-rpy2-on-Windows