![How To Install Dlib In Anaconda How To Install Dlib In Anaconda](/uploads/1/2/5/5/125508811/658548613.png)
![Dlib Dlib](/uploads/1/2/5/5/125508811/731956884.jpg)
I'm following this guide of installation. I did: mkdir -p /srccd /srctar xf dlib-19.1.0.tar.gzcd dlib-19.1.0/pythonexamplesmkdir buildcd buildcmake././tools/pythoncmake -build.config Releasesudo cp dlib.so /usr/local/lib/python3.4/dist-packages/It says that at this point I should be able to run import dlib, but if I run it from virtualenv gives me ImportError: No module named dlibIf I run it outside from virtualenv it gives: ImportError: dynamic module does not define init function (PyInitdlib)What am I doing wrong? How to install dlib for python?UPD: I've tried same for Python2: sudo cp dlib.so /usr/local/lib/python2.7/dist-packages/and it worked for python2. So how to do the same for python3? Found solution by myself but thanks @edwinksl for his tip.In order to install dlib for python3 it's better to use pip:pip install dlibYou will need boost python. To get it:sudo apt-get install libboost-all-devIf you have 'Could NOT find PythonLibs (missing: PYTHONLIBRARIES) (Required is at least version '3.4')' error make sure you have cmake 2.8 (In my case it is 3.2.2). To install cmake 2.8: sudo add-apt-repository ppa:george-edison55/cmake-3.xsudo apt-get updatesudo apt-get install cmakeThat solved the issue for me.
第一次帮自己装的时候,又下了visual studio去编译boost库,在anaconda prompt 输入 conda install -c menpo dlib=18.18,又下了whl文件,搞了三天才成功的。 结果今天帮主管装就光pip install xxx.whl就行了,真是醉了。. Install CUDA Accelerate for Anaconda Python 3 January, 2018. The install procedure is similar for Mac, Linux, and Windows. Before starting GPU work (in any programming language) realize these general caveats.
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language PythonIf you are about to ask a 'how do I do this in python' question, please try, or the #python IRC channel on FreeNode.Please don't use URL shorteners.