[R] pkg reticulate + python3 + MSYS2 (windows)

Cleber Borges c|eber@borge@ @end|ng |rom u||@@br
Sat Sep 14 20:18:54 CEST 2019


To all R users
Good afternoon
Has anyone used the reticulate package with python3 within the MSYS2 
(windows) environment ???
With the python2 version works without problems.
But my goal is to use PyGI (Gtk3) which is officially supported on 
windows only by MSYS2.

Thanks in advance for any help!
Cleber Borges

########################

 > system("where python")
C:\Python27_64bit\python.exe
[1] 0
 > system("C:/msys64/mingw64/bin/python.exe -V")
Python 3.7.4
[1] 0
 > system("C:/Python27_64bit/python.exe -V")
Python 2.7.10
[1] 0
 > Sys.setenv(RETICULATE_PYTHON = "C:/msys64/mingw64/bin" )
 > library( reticulate )
 > py_discover_config()
python:         C:/msys64/mingw64/bin/python.exe
libpython:      python37.dll
pythonhome:     C:/building/msys64/mingw64
version:        3.7.4 (default, Aug 15 2019, 18:17:27)  [GCC 9.2.0 64 
bit (AMD64)]
Architecture:   64bit
numpy:           [NOT FOUND]

NOTE: Python version was forced by RETICULATE_PYTHON
 > py_available( TRUE )
[1] FALSE
 > py_available(  )
[1] FALSE
 > os <- import("os")
Error in py_initialize(config$python, config$libpython, 
config$pythonhome,  :
   python37.dll - Não foi possível encontrar o módulo especificado.

 >
 >



More information about the R-help mailing list