2016-07-20 7 views
1

Ich versuche Tabellen zu installieren, damit ein vorhandener Python-Skript nicht beschweren, wenn er versucht zu ‚Import-Tabellen‘Kann nicht pip die Python-Modul Tabellen installieren

pip install tables 

Hier ist die Ausgabe:

Collecting tables 
    Using cached tables-3.2.3.1.tar.gz 
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8.0 in ./miniconda/envs/optimus/lib/python2.7/site-packages (from tables) 
Requirement already satisfied (use --upgrade to upgrade): numexpr>=2.5.2 in ./miniconda/envs/optimus/lib/python2.7/site-packages (from tables) 
Installing collected packages: tables 
    Running setup.py install for tables: started 
    Running setup.py install for tables: finished with status 'error' 
    Complete output from command /home/jonathonhill/miniconda/envs/optimus/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jcuNfM/tables/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ofzTc6-record/install-record.txt --single-version-externally-managed --compile: 
    * Using Python 2.7.8 |Continuum Analytics, Inc.| (default, Aug 21 2014, 18:22:21) 
    * USE_PKGCONFIG: True 
    * pkg-config header dirs for HDF5: /usr/include/hdf5/serial 
    * pkg-config library dirs for HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial 
    * Found HDF5 headers at ``/usr/include/hdf5/serial``, library at ``/usr/lib/x86_64-linux-gnu/hdf5/serial``. 
    .. WARNING:: Could not find the HDF5 runtime. 
     The HDF5 shared library was *not* found in the default library 
     paths. In case of runtime problems, please remember to install it. 
    /tmp/lzo_version_dateanObdP.c:1:1: warning: return type defaults to âintâ [-Wimplicit-int] 
    main (int argc, char **argv) { 
    ^
    /tmp/lzo_version_dateanObdP.c: In function âmainâ: 
    /tmp/lzo_version_dateanObdP.c:2:5: warning: implicit declaration of function âlzo_version_dateâ [-Wimplicit-function-declaration] 
     lzo_version_date(); 
     ^
    * Could not find LZO 2 headers and library; disabling support for it. 
    /tmp/lzo_version_datedINlTK.c:1:1: warning: return type defaults to âintâ [-Wimplicit-int] 
    main (int argc, char **argv) { 
    ^
    /tmp/lzo_version_datedINlTK.c: In function âmainâ: 
    /tmp/lzo_version_datedINlTK.c:2:5: warning: implicit declaration of function âlzo_version_dateâ [-Wimplicit-function-declaration] 
     lzo_version_date(); 
     ^
    * Could not find LZO 1 headers and library; disabling support for it. 
    /tmp/BZ2_bzlibVersionL7B4pC.c:1:1: warning: return type defaults to âintâ [-Wimplicit-int] 
    main (int argc, char **argv) { 
    ^
    /tmp/BZ2_bzlibVersionL7B4pC.c: In function âmainâ: 
    /tmp/BZ2_bzlibVersionL7B4pC.c:2:5: warning: implicit declaration of function âBZ2_bzlibVersionâ [-Wimplicit-function-declaration] 
     BZ2_bzlibVersion(); 
     ^
    * Found bzip2 headers at ``/usr/include``, the library is located in the standard system search dirs. 
    /tmp/blosc_list_compressorsQc0Mok.c:1:1: warning: return type defaults to âintâ [-Wimplicit-int] 
    main (int argc, char **argv) { 
    ^
    /tmp/blosc_list_compressorsQc0Mok.c: In function âmainâ: 
    /tmp/blosc_list_compressorsQc0Mok.c:2:5: warning: implicit declaration of function âblosc_list_compressorsâ [-Wimplicit-function-declaration] 
     blosc_list_compressors(); 
     ^
    * Could not find blosc headers and library; using internal sources. 

Ich entnehme daraus, dass ich eine gemeinsame HDF5-Bibliothek vermisse. Wie kann ich diesen Fehler beheben/installieren Sie alle notwendigen Abhängigkeiten.

Antwort

1

Ihr Protokoll ausdrücklich sagen, was falsch ist:

ACHTUNG :: konnte nicht HDF5 Laufzeit finden.

Versuchen Sie folgendes:

sudo python setup.py build_ext --inplace --hdf5=/opt/local --lzo=/opt/local --bzip2==opt/local 

sudo python setup.py install --hdf5=/opt/local --lzo=/opt/local --bzip2==opt/local 
0

Take a look at the project site page. Sie können die dependeces manuell herunterladen (blosc), vielleicht das Problem durch ein Netzwerkproblem gegeben ist, oder nicht automatically.If erfüllen können Sie bereits die Bibliothek versuchen während der Installation auf diese Weise zu spezifizieren:

python setup.py --blosc=/stuff/blosc-1.8.1 
Verwandte Themen