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

python - Getting ESC characters and non-printables from UDP socket / buffer -

string - Using python and postgres, variables within execute function? -