[英]How to run Python code in RStudio from Anaconda without using R reticulate package (directly with Python interpreter without any R involvement
我想使用 Anaconda 的 RStudio 进行 Python 开发。 但我不想使用任何代码转换等,比如使用 RStudio 默认使用的 R reticulate 包。 我需要它以便直接使用 Python 解释器运行 Python 代码以获得最大的 Python 性能。 我该怎么做?
为什么是 RStudio? 因为我发现它比我测试过的其他 Python IDE 好得多。
您可以使用 r 系统函数调用 python 来运行您的脚本:
system('python script.py')
只要确保 python 在路径上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.