2014-10-04 13 views

Antwort

3

Es stellt sich heraus, Boost 1.56 scheint Probleme mit NVCC zu haben, so dass die boost_python lib-Dateien nicht installiert werden. Die Installation mit boost 1.55 funktioniert. Früher habe ich:

git checkout a252214 /usr/local/Library/Formula/boost.rb 
brew install --build-from-source --with-python --fresh -vd boost 

Dank this thread

+0

Ich habe eine Menge Probleme bei der Installation von Caffe auf OS X 10.9.5. Hast du es mit den modifizierten Brühformeln installiert? Es sieht so aus, als ob ich jedes Mal einen anderen Fehler bekomme, wenn ich versuche, Caffe zu kompilieren. Ich werde keine Dateien oder BLAS finden können (obwohl Mac es über Accelerate installiert hat). Irgendwelche Tipps? – scottlittle

+1

Ja, vergewissern Sie sich, dass Sie den Schritt "brew edit" ausführen. Befolgen Sie die Caffe-Anweisungen genau. Ich habe OpenBLAS installiert. –

+1

Obwohl Caffe Compliation erfolgreich ist, bekomme ich immer noch 'Fatal Python error: PyThreadState_Get: kein aktueller Thread' wenn ich Caffe laufen lasse. Bitte lassen Sie mich wissen, wenn Sie es auch tun! Homebrews Rat zu diesem Problem scheint nicht hilfreich zu sein: https://github.com/Homebrew/homebrew/wiki/Common-Issues. Ich arbeite mit "brew doctor", bevor ich ein Problem stelle. –

4

Führen Sie den Befehl brew install boost-python Dies wird herunterladen, kompilieren und das Boost-Paket mit Boost-Python-Unterstützung installieren. Boost-Python ist für das Graphicsmagick-Engine Pip-Paket erforderlich und ich stieß auf das gleiche Problem. Um Ihnen eine Vorstellung davon, was geschieht, ist dies die Ausgabe des Befehls:

==> Downloading https://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2 
######################################################################## 100.0% 
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost-python/1.57.0 --libdir=/usr/local/Cellar/boost-python/1.57.0/lib --with-libraries=python --with-python=python --with-python-root=/System/Library/Frameworks/Python.framework/Versions/2.7 
==> ./b2 --build-dir=build-python --stagedir=stage-python python=2.7 --prefix=/usr/local/Cellar/boost-python/1.57.0 --libdir=/usr/local/Cellar/boost-python/1.57.0/lib -d2 -j8 --layout=tagged --user-config=user-config.jam threading=multi,s 

Sie könnten alternativ herunterladen, kompilieren und Symlink die Boost-Paket (das ist, was ich tat ursprünglich), aber das ist eine ganze Menge einfacher, wenn die Standardpfade für Sie arbeiten.

+1

Für python3 müssen Sie 'brew install boost-python --with-python3' ausführen und dann mit' -lboost_python3' aufbauen – ronen

Verwandte Themen