【问题标题】:rPython crashes when I try to load a .py file with pandas当我尝试使用 pandas 加载 .py 文件时,rPython 崩溃
【发布时间】: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 r pandas rpython


【解决方案1】:

当我从官网卸载 Anaconda 2 并安装 Python 后,问题就解决了。

【讨论】:

    猜你喜欢
    • 2015-12-11
    • 2019-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多