在R中导入熊猫返回错误消息

时间:2019-12-16 10:23:10

标签: python r pandas reticulate

尝试使用网状结构导入熊猫。这就是我尝试编写的内容

system("virtualenv -p /usr/bin/python3 /home/andres/.virtualenvs/py3-virtualenv")
use_virtualenv("py3-virtualenv")
py_install("pandas",envname="py3-virtualenv")
p <- import("pandas")

但是这会返回错误消息

py_module_import中的错误(模块,convert = convert):  ImportError:无法导入所需的依赖项: numpy:

重要提示:请阅读此建议,以了解如何解决此问题!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
 1. Check that you expected to use Python3.8 from "C:\Program Files\RStudio\bin\rsession.exe",
    and that you have no directories in your PATH or PYTHONPATH that can
    interfere with the Python and numpy version "1.17.3" you're trying to use.
 2. If (1) looks fine, you can open a new issue at
    https://github.com/numpy/numpy/issues.  Please include details on:
    - how you installed Python
    - how you installed numpy
    - your operating system
    - whether or not you have multiple versions of Python installed
    - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
 (removes all files not under version control) and

我不确定我应该做什么

0 个答案:

没有答案