rPython找不到Pandas

2024-05-29 02:42:52 发布

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

我似乎在使用rPython的闪亮服务器上运行python应用程序时遇到了问题。你知道吗

我设定了我的路径

Sys.setenv(PATH = paste("/Users/timmcwilliams/anaconda2/bin/", Sys.getenv("PATH"),sep=":"))

然后我检查了一下它是否和

  system("python --version")

Python 2.7.14 :: Anaconda, Inc.

最后,我也检查了我的路线

 Sys.getenv("PATH")
[1] "/Users/timmcwilliams/anaconda2/bin/:/Users/timmcwilliams/anaconda2/bin/:/Users/timmcwilliams/anaconda2/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

所以,我认为它工作正常。但似乎没有起作用。你知道吗

runApp('app')

Listening on http://127.0.0.1:4062
Warning: Error in python.exec: No module named pandas
Stack trace (innermost first):
    39: python.exec
    38: python.load
    37: server [/Users/timmcwilliams/Code/Scripts/search-microwave/app/server.R#10]
     1: runApp
Error in python.exec(code, get.exception) : No module named pandas

但我已经安装了熊猫。我真的不知道为什么会这样。两个python版本是相同的2.7.14,我肯定我已经安装了Pandas,因为我每天都在使用它。你知道吗


Tags: pathnoinappbinusrsyserror

热门问题