【发布时间】:2017-03-21 17:22:51
【问题描述】:
rpytester.r 并包含以下几行
library(rPython)
python.load("model.py")
python.call("printme", "asdf")
model.py 包含以下行:
def printme( str ):
"This prints a passed string into this function"
return str
当我通过 put 执行rpytester.r 时
import pandas as pd
在model.py 的第一行,r 会话崩溃并显示以下错误消息。
否则程序按预期工作。
文本格式的错误信息是:
r6034 an application has made an attempt to load the c runtime incorrectly
我已经为 python 2.7.13 和 R 版本 3.3.3 (2017-03-06) 安装了 Anaconda 2。
我看过这个帖子:Runtime error R6034 in embedded Python application
但即使删除msvcr90.dll,错误仍然存在。 (不过,我不知道如何设置路径,因为它在 Anaconda 2 文件夹中)。
【问题讨论】:
-
旁注:也将错误发布为文本,而不仅仅是图片:但是什么版本的 python、操作系统等?您可能需要卸载/重新安装 pandas。毫不奇怪,
c++错误会像 pandas 一样经常出现。来自维基:The library is highly optimized for performance, with critical code paths written in Cython or C -
@MattR 感谢您的建议。完成。