2016-06-22 3 views
6

Ich benutze Anaconda als meine Haupt-Python-Distribution (obwohl auch das Standard-Python des Systems installiert ist), also muss ich graph-tool kompilieren von der Quelle, um es mit Anaconda zu arbeiten.ImportError: libboost_iostreams.so.1.61.0: kann keine gemeinsame Objektdatei öffnen: Keine solche Datei oder Verzeichnis

Ich benutze Ubuntu 14.04 also auch Boost von Quelle kompilieren müssen, um die volle Funktionalität von graph-tool nutzen zu können, da die Boost-Coroutine-Bibliothek zur Zeit nur als statische Bibliothek kompiliert wird (https://bugs.launchpad.net/ubuntu/+source/boost1.54/+bug/1529289).

Ich habe es getan, und sie haben beide ohne Fehlermeldungen installiert, aber wenn dann Grafik-Tool in Python mit from graph_tool.all import * importieren ich bekomme die Fehlermeldung ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory.

Wie könnte ich das Problem lösen/was verursacht das?

Antwort

1

scheint, dass Sie falsch boost Paketversion von Conda

  1. Liste installiert Conda Boost-Paket in der aktuellen Umgebung installiert haben conda list | grep boost Sie falsche Version (nicht 1.61.0)
  2. Suche erforderliche Version anaconda search -t conda boost | grep 1.61.0
  3. sehen
  4. Installieren Sie die korrekte Version mit same Name conda install boost -c CHANNEL_NAME

In meinem Fall habe ich Konflikte auch mit dieser Nachricht:

Linking packages ... CondaOSError: OS error: failed to link (src='/home/user/anaconda3/pkgs/icu-54.1-0/lib/icu/pkgdata.inc', dst='/home/user/anaconda3/envs/py3_graph/lib/icu/pkgdata.inc', type=3, error=FileExistsError(17, 'File exists'))

/home/user/anaconda3/envs/py3_graph/lib/icu Ordner Entfernen hilft mir

Verwandte Themen