RStudio Python Version Change on Mac

喜欢而已 提交于 2019-12-05 05:55:02

Put the following line in your .Rprofile:

Sys.setenv(PATH = paste("/home/your_user_name/anaconda3/bin", Sys.getenv("PATH"), sep=":")) 

Proof:

> system("python --version")
Python 3.6.1 :: Anaconda custom (64-bit)

Just to complete @Sergey answer and for anyone who needs it, you can edit .Rprofile directly from R with the following command:

library(devtools)
usethis::edit_r_profile()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!