Я пытаюсь установить Rpy2 на mac Yosemite. Я прочитал все сообщения разных людей о том, как установить этот пакет. Никто не был полезен для меня, так как моя проблема специфичнаустановить Rpy2 на Mac получил ошибку
я первый сделал
sudo easy_install pip
Тогда я сделал
pip install rpy2
Но я получил что-то вроде
Collecting rpy2
Downloading rpy2-2.5.6.tar.gz (165kB)
100% |################################| 167kB 2.4MB/s
R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
/Library/Frameworks/R.framework/Resources/bin/R CMD config --ldflags
/Library/Frameworks/R.framework/Resources/bin/R CMD config --cppflags
Compilation parameters for rpy2's C components:
include_dirs = ['/Library/Frameworks/R.framework/Resources/include']
library_dirs = []
libraries = ['lzma', 'z', 'icucore', 'm', 'iconv']
extra_link_args = ['-F/Library/Frameworks/R.framework/..', '-framework', 'R']
R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Collecting singledispatch (from rpy2)
Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from singledispatch->rpy2)
Installing collected packages: singledispatch, rpy2
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/basecommand.py", line 232, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/commands/install.py", line 347, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/req/req_set.py", line 549, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/req/req_install.py", line 754, in install
self.move_wheel_files(self.source_dir, root=root)
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/req/req_install.py", line 963, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/wheel.py", line 234, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/wheel.py", line 212, in clobber
shutil.copyfile(srcfile, destfile)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py'
Я попытался запустить с
easy_install rpy2
Тогда я получил некоторые ошибки
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1490.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
Finlly Я сделал это по-другому, и она работала, по-видимому
sudo easy_install rpy2
вам нужно изменить на суперпользователя, чтобы выполнить эту команду, попробуйте запустить «Суда -s», а затем вновь запустить команду –