2017-03-21 22 views
1

rpytester.r一個.py文件,幷包含以下行rPython崩潰,當我嘗試加載與大熊貓

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 

當我通過把

執行 rpytester.r
import pandas as pd 

第一行model.py,r會話崩潰並顯示以下錯誤消息。

enter image description here

否則程序正常工作。

在文本格式的錯誤信息是:

r6034 an application has made an attempt to load the c runtime incorrectly 

我已經安裝阿納康達2蟒2.7.13和R版本3.3.3(2017年3月6日)。

我看了這篇文章:Runtime error R6034 in embedded Python application 但即使在刪除msvcr90.dll後,錯誤仍然存​​在。 (雖然,我不知道如何設置路徑,因爲它位於Anaconda 2文件夾中)。

+0

備註:將錯誤發佈爲文本,而不僅僅是圖片:但是Python的版本,操作系統等?您可能想要卸載/重新安裝熊貓。 「C++」錯誤通常會顯示爲熊貓並不奇怪。來自wiki:[該庫針對性能進行了高度優化,用Cython或C編寫的關鍵代碼路徑](https://en.wikipedia.org/wiki/Pandas_(軟件)) – MattR

+0

@MattR感謝您的建議。完成。 – Waht

回答

0

這個問題在我卸載Anaconda 2並從官方網站安裝Python時得到了解決。