R reticulate unable to find installed python library

On a whim I downloaded and installed the latest RStudio desktop (1.2.701) and upgraded from 1.1.442. This seems to have solved my issue. The packages load and I now see that when I run py_config I see paths that reflect my environment choice, as I would expect.

> py_config()
python:         C:\Users\jal\AppData\Local\Continuum\Anaconda\envs\r-reticulate\python.exe
libpython:      C:/Users/jal/AppData/Local/Continuum/Anaconda/envs/r-reticulate/python36.dll
pythonhome:     C:\Users\jal\AppData\Local\CONTIN~1\Anaconda\envs\R-RETI~1
version:        3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:\Users\jal\AppData\Local\CONTIN~1\Anaconda\envs\R-RETI~1\lib\site-packages\numpy
numpy_version:  1.14.3
psycopg2:       C:\Users\jal\AppData\Local\CONTIN~1\Anaconda\envs\R-RETI~1\lib\site-packages\psycopg2

python versions found: 
 C:\Users\jal\AppData\Local\Continuum\Anaconda\envs\r-reticulate\python.exe
 C:\Users\jal\AppData\Local\CONTIN~1\Anaconda\python.exe
 C:\Users\jal\AppData\Local\CONTIN~1\ANACON~1\python.exe

I solved my issue by following this way in RStudio:

py_config() No non-system installation of Python could be found. Would you like to download and install Miniconda? Miniconda is an open source environment management system for Python. See https://docs.conda.io/en/latest/miniconda.html for more details.

Would you like to install Miniconda? [Y/n]: Y

  • Downloading "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" ... trying URL 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe' Content type 'application/octet-stream' length 57256056 bytes (54.6 MB) downloaded 54.6 MB

  • Installing Miniconda -- please wait a moment ...

Tags:

R

Reticulate