Ich folgte this tutorial DLIB zu installieren, aber wenn ich pip install dlib
laufen bekomme ichFehler beim DLIB Installation
Collecting dlib
Using cached dlib-19.4.0.tar.gz Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /home/leo/.virtualenvs/py3_dlib_tutorial/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-4luevi_i/dlib/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpv2rhc6cbpip-wheel- --python-tag cp36:
running bdist_wheel
running build
Detected Python architecture: 64bit
Detected platform: linux
Configuring cmake ...
/usr/bin/cmake: /home/leo/anaconda3/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/cmake: /home/leo/anaconda3/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/bin/cmake)
/usr/bin/cmake: /home/leo/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/bin/cmake)
/usr/bin/cmake: /home/leo/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/bin/cmake)
/usr/bin/cmake: /home/leo/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1)
error: cmake configuration failed!
irgendwelche Vorschläge, wie das beheben?
aktualisieren
ich ubuntu 16.04
auch bin mit, was ich bemerkt habe, ist, wenn ich sudo pip install dlib
laufen sie aber arbeitet dann bekomme ich
(py3_dlib_tutorial) ~$ python
Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 12:22:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'dlib'
aktualisieren
Scheint wie ein fester pr IOR dies verursacht den Fehler
ich diese Zeile in meinem .bashrc deaktiviert
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/leo/anaconda3/lib
die necessery mkvirtualenv
Arbeit zu machen war. Jetzt pip install dlib
gearbeitet, aber ich bekomme immer noch einen ähnlichen Fehler
python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 12:22:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/leo/anaconda3/lib/python3.6/site-packages/dlib/__init__.py", line 1, in <module>
from .dlib import *
ImportError: /home/leo/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libboost_python-py35.so.1.58.0)
Haben Sie dlib-Voraussetzungen installiert? und was os verwendest du? – tso
Wenn Sie bereits Voraussetzungen installiert haben, installieren Sie boost python. 'sudo apt install libboost-all-dev' und und danach versuchen' pip install dlib' – tso
libboost-all-dev ist bereits die neueste Version (1.58.0.1ubuntu1), die bereits installiert war ... –