Ich benutze Python 3.4.3 unter Ubuntu 14.04 und möchte Call R-Code verwenden, um einige Ergebnisse zu erhalten. Ich kenne die Existenz einiger Pakete wie pyper und rpy2, aber sie sehen nur mit python2 kompatibel aus. 'sudo PIP3 installieren rpy2' ich die folgen bekommenPython3 - benutze/wrappe R-Funktion
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pip/req.py", line 707, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python3/dist-packages/pip/util.py", line 715, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_user/rpy2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8hhbkgev-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_user/rpy2
Gibt es eine Möglichkeit R Code in Python 3.4.3 zu verwenden Durch die Eingabe von?
Haben Sie versucht, aus rpy2 mit * Rad * zu installieren [C. Gohlke Website] (http://www.lfd.uci.edu/~gohlke/pythonlibs/)? Ich denke, es gibt ein paar mehr Tricks, um die Installation unter Windows zu erreichen, siehe http://StackOverflow.com/a/32983656/5050917 zum Beispiel. – mgc