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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -