试图使用Python或Julia时RStudio崩溃

2024-10-03 04:31:17 发布

您现在位置:Python中文网/ 问答频道 /正文

每当我尝试使用Python(anaconda或Python)或Julia等不同的语言引擎时,RStudio就会崩溃。我可以运行library(reticulate)library(JuliaCall),但当我实际开始键入代码块并尝试执行python或julia代码时,会话崩溃

对于Julia,我收到的第一条信息是

"Error Autosaving File. RStudio was unable to autosave this file. You may need to restart RStudio."

然后我得到了

"R Session Aborted"

带有炸弹和“启动新会话”按钮的消息。RStudio中未提供任何代码或其他消息

我已经多次卸载并重新安装了R、Python和Julia,没有任何解析

例如,当我尝试使用纯R和Julia时,下面是输出(不幸的是,Python没有消息)。我对在RStudio中启动和运行Python更感兴趣

library(JuliaCall)
julia_setup()

Julia version 1.6.3 at location /Applications/Julia-1.6.app/Contents/Resources/julia/bin will be used.

*** caught segfault *** address 0xfffffffffffffff8, cause 'memory not mapped'

Traceback: 1: juliacall_initialize(.julia$dll_file, .julia$bin_dir, img_abs_path) 2: julia_setup()

Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace ERROR: Selection:

Macbook Pro 
Processor - 2.6 GHz 6-Core Intel Core i7
Memory - 2 GB 2667 MHz DDR4
OS - MacOS Big Sur v11.6
R version 4.1.1
Rstudio 2021.09.0 Build 351
Anaconda version 1.7.2
Julia 1.6

enter image description here

enter image description here


Tags: to代码消息binversionsetuplibraryexit