r - force python version for Rstudio -


i have weird issue regarding getting right python version inside rstudio.

in python console, get

python 2.7.10 (default, dec  3 2015, 00:46:36)  [gcc 4.2.1 compatible apple llvm 7.0.0 (clang-700.1.76)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import sys >>> sys.executable '/home/name/.pyenv/versions/2.7.10/bin/python' 

in rstudio

sys <- import("sys") sys$executable

throws

"/usr/bin/python" 

if force

sys.setenv(path = paste("/home/name/.pyenv/versions/2.7.10/bin/python2.7", sys.getenv("path"), sep=":"))  

i same result. has idea ?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -