2014-01-12 53 views
2

按照大熊貓社區頁面(http://pandas.pydata.org/community.html),我第一次在這裏發帖...安裝大熊貓在Ubuntu 12.04失敗

我試圖使用PIP香草遠程服務器上安裝大熊貓,在虛擬環境中運行Ubuntu 12.04.3(64位)。我已經安裝了通常的嫌犯(python-dev(2.7),numpy,scipy)。熊貓沒有安裝,我不確定要改變或添加什麼以確保發生這種情況。

我已經看到其他引用(不是具有相同的錯誤)暗示內存可能是一個問題;遠程服務器(Digital Ocean droplet)只有512MB。

畫中畫錯誤日誌的尾部如下所示:

gcc: internal compiler error: Killed (program cc1) 

Please submit a full bug report, 

with preprocessed source if appropriate. 

See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. 

error: command 'gcc' failed with exit status 4 

---------------------------------------- 

Command /srv/tp/venv/bin/python -c "import setuptools;__file__='/srv/tp/venv/build/pandas/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-0bOHrG-record/install-record.txt --install-headers /srv/tp/venv/include/site/python2.7 failed with error code 1 in /srv/tp/venv/build/pandas 

Exception information: 
Traceback (most recent call last): 
    File "/srv/tp/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main 
    status = self.run(options, args) 
    File "/srv/tp/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 250, in run 
    requirement_set.install(install_options, global_options) 
    File "/srv/tp/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1133, in install 
    requirement.install(install_options, global_options) 
    File "/srv/tp/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 577, in install 
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) 
    File "/srv/tp/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
InstallationError: Command /srv/tp/venv/bin/python -c "import setuptools;__file__='/srv/tp/venv/build/pandas/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-0bOHrG-record/install-record.txt --install-headers /srv/tp/venv/include/site/python2.7 failed with error code 1 in /srv/tp/venv/build/pandas 

回答

4

但最安全的方法就是:sudo易於得到安裝python-大熊貓

+0

謝謝,這爲我工作。 –