Skip to content

Check python library for reticulate

Randy Lai edited this page Sep 27, 2017 · 3 revisions

Use rice shell mode to execute cat which rice | head -n 1 and compare it to reticulate ::py_discover_config().

(rmbpro)-~$ rice --version
rice version: 0.0.27-dev
python version: 3.5.3
python executable: /Users/Randy/miniconda3/bin/python
(rmbpro)-~$ rice
R version 3.4.1 (2017-06-30) -- Single Candle
Platform: x86_64-apple-darwin16.7.0

r$> reticulate::py_discover_config()
python:         /Users/Randy/miniconda3/bin/python
libpython:      /Users/Randy/miniconda3/lib/libpython3.5m.dylib
pythonhome:     /Users/Randy/miniconda3:/Users/Randy/miniconda3
version:        3.5.3 |Continuum Analytics, Inc.| (default, Mar  6 2017, 12:15:08)  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
numpy:          /Users/Randy/miniconda3/lib/python3.5/site-packages/numpy
numpy_version:  1.13.1

python versions found:
 /Users/Randy/miniconda3/bin/python
 /usr/bin/python

If they are different, you probably haven't installed numpy for the python which rice uses.

Clone this wiki locally