从git安装并执行rpy2

时间:2019-07-14 00:35:46

标签: git

我尝试安装

this

本地git:

但是当我在bash中执行命令时 python create_text_folder.py -i Apache -o output_dir 我收到此错误:

MINGW64 /C/git/Personality-Recognition-in-SD (master)
$ python create_text_folder.py -i Apache -o output_dir
Traceback (most recent call last):
  File "create_text_folder.py", line 1, in <module>
    import MailCorpus as mc
  File "C:\git\Personality-Recognition-in-SD\MailCorpus.py", line 1, in <module>
    import rpy2.robjects as robjects
ModuleNotFoundError: No module named 'rpy2'

我以管理员身份运行。我该如何修正它?

1 个答案:

答案 0 :(得分:1)

如果您正在使用Git For Windows中的Git bash会话,则需要仔细检查Python installation and PYTHONPATH, as in here

另一种方法是重复collab-uniba/Personality-Recognition-in-SD的克隆+安装步骤,但是在WSL会话(Windows Subsystem for Linux)中,这可能与该程序更兼容。