Saya mencoba menginstal paket python rpy2
dengan pip install di Ubuntu 16.04:
pip install rpy2==2.2.7
tetapi dapatkan pesan kesalahan (lihat hasil lengkap di bawah):
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EuOI6K/unroll/
Hal yang sama terjadi dengan paket lain, suka pip install unroll
, atau menggunakan pip2
. Saya pikir posting ini adalah masalah yang sama, tetapi di sana bisa diselesaikan dengan menggunakan sudo.
Solusi dicoba
Aku mencoba solusi dalam posting , seperti: pip install --upgrade setuptools
, (sudo) easy_install -U setuptools
, atau sudo apt-get install python-setuptools
, tetapi tidak berhasil.
info python / pip
Seseorang menyarankan saya mungkin memiliki instalasi python / pip yang aneh, berikut adalah beberapa info:
sudo which python pip pip2 | xargs -rd '\n' readlink -f
/usr/bin/python2.7
/usr/local/bin/pip
/usr/local/bin/pip2
sudo python --version
Python 2.7.12
sudo pip --version
pip 9.0.1 from /home/matifou/.local/lib/python2.7/site-packages (python 2.7)
/usr/bin/pip2 --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
ls -l $(which pip); dpkg -S /usr/bin/pip
-rwxr-xr-x 1 root root 204 Nov 8 16:24 /usr/local/bin/pip
python-pip: /usr/bin/pip
Output kesalahan penuh
pip install rpy2 == 2.2.7
Mengumpulkan rpy2 == 2.2.7 Menggunakan rpy2-2.2.7.tar.gz yang di-cache
Output lengkap dari perintah python setup.py egg_info:
menjalankan egg_info
membuat pip-egg-info / rpy2.egg-info
menulis pip-egg-info / rpy2.egg-info / PKG-INFO
menulis nama tingkat atas ke pip-egg-info / rpy2.egg-info / top_level.txt
menulis dependency_links ke pip-egg-info / rpy2.egg-info / dependency_links.txt
menulis file manifes 'pip-egg-info / rpy2.egg-info / SOURCES.txt'
Traceback (panggilan terakhir terakhir):
File "", baris 1, dalam
File "/tmp/pip-build-EkrbmM/rpy2/setup.py", baris 462, di
[os.path.join ('doc', 'source', 'rpy2_logo.png')])],
File "/usr/lib/python2.7/distutils/core.py", baris 151, dalam pengaturan
dist.run_commands ()
File "/usr/lib/python2.7/distutils/dist.py", baris 953, di run_commands
self.run_command (cmd)
File "/usr/lib/python2.7/distutils/dist.py", baris 972, di run_command
cmd_obj.run ()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
baris 280, sedang dijalankan
self.find_sources ()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
baris 295, di find_sources
mm.run ()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
baris 526, sedang dijalankan
self.add_defaults ()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py",
baris 562, di add_defaults
sdist.add_defaults (mandiri)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/py36compat.py",
baris 36, di add_defaults
self._add_defaults_ext ()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/py36compat.py",
baris 119, dalam _add_defaults_ext
build_ext = self.get_finalized_command ('build_ext')
File "/usr/lib/python2.7/distutils/cmd.py", baris 312, di get_finalized_command
cmd_obj.ensure_finalized ()
File "/usr/lib/python2.7/distutils/cmd.py", baris 109, di sure_finalized
self.finalize_options ()
File "/tmp/pip-build-EkrbmM/rpy2/setup.py", baris 155, di finalize_options
config + = get_rconfig (r_home, tentang)
File "/tmp/pip-build-EkrbmM/rpy2/setup.py", baris 319, di get_rconfig
rc = RConfig.from_string (rconfig, allow_empty = allow_empty)
File "/tmp/pip-build-EkrbmM/rpy2/setup.py", baris 279, di from_string
+ '\ nin string \ n' + string)
ValueError: Substring tidak valid
-fopenmp
dalam string
-Wl, - ekspor-dinamis -fopenmp -Wl, -Bsymbolic-functions -Wl, -z, relro -L / usr / lib / R / lib -lR -lpcre -llzma -lbz2 -lz -lrt -ldl -lm
Perintah "python setup.py egg_info" gagal dengan kode kesalahan 1 di / tmp / pip-build-EkrbmM / rpy2 /
pip instal buka gulungan
Mengumpulkan unroll Menggunakan cached unroll-0.1.0.tar.gz
Output lengkap dari perintah python setup.py egg_info:
Mengunduh http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Traceback (panggilan terakhir terakhir):
File "", baris 1, dalam
File "/tmp/pip-build-QimGjp/unroll/setup.py", baris 2, di
ez_setup.use_setuptools ()
File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", baris 145, di use_setuptools
return _do_download (versi, download_base, to_dir, download_delay)
File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", baris 124, di _do_download
to_dir, download_delay)
File "/usr/local/lib/python2.7/dist-packages/ez_setup.py", baris 193, di download_setuptools
src = urlopen (url)
File "/usr/lib/python2.7/urllib2.py", baris 154, di urlopen
return opener.open (url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", baris 435, terbuka
response = meth (req, response)
File "/usr/lib/python2.7/urllib2.py", baris 548, di http_response
'http', permintaan, tanggapan, kode, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", baris 473, salah
return self._call_chain (* args)
File "/usr/lib/python2.7/urllib2.py", baris 407, di _call_chain
hasil = func (* args)
File "/usr/lib/python2.7/urllib2.py", baris 556, di http_error_default
meningkatkan HTTPError (req.get_full_url (), kode, msg, hdrs, fp)
urllib2.HTTPError: Kesalahan HTTP 403: SSL diperlukan
Perintah "python setup.py egg_info" gagal dengan kode kesalahan 1 di tmp / pip-
build-QimGjp / unroll /
-H
bendera sepertisudo -H
sudo -H
itu tidak berfungsi :-(