<tfoot id='CBAeC'></tfoot>
        <bdo id='CBAeC'></bdo><ul id='CBAeC'></ul>

      <small id='CBAeC'></small><noframes id='CBAeC'>

        <legend id='CBAeC'><style id='CBAeC'><dir id='CBAeC'><q id='CBAeC'></q></dir></style></legend>
      1. <i id='CBAeC'><tr id='CBAeC'><dt id='CBAeC'><q id='CBAeC'><span id='CBAeC'><b id='CBAeC'><form id='CBAeC'><ins id='CBAeC'></ins><ul id='CBAeC'></ul><sub id='CBAeC'></sub></form><legend id='CBAeC'></legend><bdo id='CBAeC'><pre id='CBAeC'><center id='CBAeC'></center></pre></bdo></b><th id='CBAeC'></th></span></q></dt></tr></i><div id='CBAeC'><tfoot id='CBAeC'></tfoot><dl id='CBAeC'><fieldset id='CBAeC'></fieldset></dl></div>

        R_HOME rpy2 错误

        时间:2023-07-23
          • <bdo id='DA8GJ'></bdo><ul id='DA8GJ'></ul>

              <small id='DA8GJ'></small><noframes id='DA8GJ'>

                <tbody id='DA8GJ'></tbody>

              <tfoot id='DA8GJ'></tfoot>

                <legend id='DA8GJ'><style id='DA8GJ'><dir id='DA8GJ'><q id='DA8GJ'></q></dir></style></legend>

              1. <i id='DA8GJ'><tr id='DA8GJ'><dt id='DA8GJ'><q id='DA8GJ'><span id='DA8GJ'><b id='DA8GJ'><form id='DA8GJ'><ins id='DA8GJ'></ins><ul id='DA8GJ'></ul><sub id='DA8GJ'></sub></form><legend id='DA8GJ'></legend><bdo id='DA8GJ'><pre id='DA8GJ'><center id='DA8GJ'></center></pre></bdo></b><th id='DA8GJ'></th></span></q></dt></tr></i><div id='DA8GJ'><tfoot id='DA8GJ'></tfoot><dl id='DA8GJ'><fieldset id='DA8GJ'></fieldset></dl></div>
                • 本文介绍了R_HOME rpy2 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我知道有很多关于在 Windows 7 32 位上使用 rpy2 启动和运行的帖子.我参考了其中的很多并尝试了他们的解决方案,包括使用 PypeR.

                  I know there are quite a few posts on getting up and running with rpy2 on windows 7 32 bit. I have referenced a good number of them and attempted their solutions, including the use of PypeR.

                  我没有在我的路径中明确设置 R_HOME 变量,但是根据这个 问题,我确认 R 在我的 PATH 中(我可以在命令行输入 R 并让 R 运行),甚至复制了所有文件从 i386 文件夹到父 bin 文件夹.

                  I dont explicitly have a R_HOME variable set in my path, but per this question, I confirmed that R is in my PATH (I can type R at the command line and get R to run) and even copied all of the files from the i386 folder to the parent bin folder.

                  我的问题贴在下面.有什么想法吗?

                  My issue is pasted below. Any thoughts?

                  In [5]: from rpy2 import robjects
                  ---------------------------------------------------------------------------
                  RuntimeError                              Traceback (most recent call last)
                  <ipython-input-5-1f019d00d232> in <module>()
                  ----> 1 from rpy2 import robjects
                  
                  C:Anacondalibsite-packages
                  py2
                  objects\__init__.py in <module>()
                       16 import rpy2.rlike.container as rlc
                       17
                  ---> 18 from rpy2.robjects.robject import RObjectMixin, RObject
                       19 from rpy2.robjects.vectors import *
                       20 from rpy2.robjects.functions import Function, SignatureTranslatedFunction
                  
                  C:Anacondalibsite-packages
                  py2
                  objects
                  object.py in <module>()
                        3 import rpy2.rinterface
                        4
                  ----> 5 rpy2.rinterface.initr()
                        6
                        7 import conversion
                  
                  RuntimeError: R_HOME not defined.
                  

                  推荐答案

                  我确认此问题与未定义的 R_HOME 变量有关.

                  I confirm this issue is related to R_HOME variable not defined.

                  在我看来,所有这些问题都是由于 rpy2 包的开发人员没有正确记录他们的软件需求造成的:

                  In my opinion, all of these issues are caused because the developers of rpy2 package haven't documented properly the requirements of their software:

                  • 安装R
                  • 创建R_HOME系统变量
                  • R_HOMEin 添加到 PATH,以便从 python
                  • 执行 R
                  • R_HOMEinx64 添加到 PATH,以便加载 R.dll
                  • 安装包tzlocal
                  • Install R
                  • Create R_HOME system variable
                  • Add R_HOMEin to the PATH, in order to execute R from python
                  • Add R_HOMEinx64 to the PATH, in order to load R.dll
                  • Install package tzlocal

                  这篇关于R_HOME rpy2 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:添加“django-admin.py"Windows 7 上的命令行路径 下一篇:Python matplotlib 在 Windows 7 上为 freetype、png 包安装问题

                  相关文章

                  • <bdo id='BE6Ed'></bdo><ul id='BE6Ed'></ul>
                  1. <legend id='BE6Ed'><style id='BE6Ed'><dir id='BE6Ed'><q id='BE6Ed'></q></dir></style></legend>

                    1. <small id='BE6Ed'></small><noframes id='BE6Ed'>

                      <i id='BE6Ed'><tr id='BE6Ed'><dt id='BE6Ed'><q id='BE6Ed'><span id='BE6Ed'><b id='BE6Ed'><form id='BE6Ed'><ins id='BE6Ed'></ins><ul id='BE6Ed'></ul><sub id='BE6Ed'></sub></form><legend id='BE6Ed'></legend><bdo id='BE6Ed'><pre id='BE6Ed'><center id='BE6Ed'></center></pre></bdo></b><th id='BE6Ed'></th></span></q></dt></tr></i><div id='BE6Ed'><tfoot id='BE6Ed'></tfoot><dl id='BE6Ed'><fieldset id='BE6Ed'></fieldset></dl></div>
                      <tfoot id='BE6Ed'></tfoot>