[PYTHON] If you get hooked on pip install dlib on OSX

Target

Reproduction

First, insert the dependent library by referring to the entry below.

http://qiita.com/naoyu822/items/7cce2f2dbad24931cc87

Then insert dlib. In the above, the tarball has been dropped

pip install dlib

It may be.

At that time, an error such as "libpython3.5.dylib is missing" is displayed at the end and the build fails. Looking inside the given lib directory, there is no libpython3.5.dylib, but libpython3.5m.a.

Solution

It seems that if you add "--enable-framework" in the build of cpython, it will be built as the framework of OSX. Then dylib will be spit out under lib.

env PYTHON_CONFIGURE_OPTS="--enable-framework" xbuild/python-install 3.5.0 ~/local/python/3.5.0
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.5.0

If you do, dylib will be spit out. Then you can install it again by `` `pip install dlib```.

Recommended Posts

If you get hooked on pip install dlib on OSX
What to do if you get a UnicodeDecodeError with pip install
Read this if you get SSL related errors with pip install! !! !!
Install pip on Mavericks
Install pyenv on OSX
Install pip / pip3 on Ubuntu
Install openstack client from pip so you don't get an error on CentOS7
Workaround if you get an error when trying to install PySide with pip
If you get stuck when building pycocoapi on Windows
What to do if you can't pip install mysqlclient
Install pillow on Mac OSX 10.9
What to do if `pip install matplotlib` fails on Mac
What to do if pip install mysqlclient fails on MacOS
If you get stuck in Cannot load mkl_intel_thread.dll in Python on Windows
Pip install --ugrade pip fails on Windows
Checkpoint when you get hooked on LINE parrot return bot on Heroku
What to do if you can't install pyaudio with pip #Python
module install if pip install doesn't work
Install Python on Windows + pip + virtualenv
I want to know if you install Python on Mac ・ Iroha
Install pip on CentOS7. Also iPython.
[TensorFlow] If you want to run TensorBoard, install it with pip
If you should have pip installed but get an Import error
Install easy_install and pip on windows
What to do if you get stuck during Anaconda installation on Linux
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
What to do if you get an error when installing Dlib (Ubuntu)
scipy stumbles with pip install on python 2.7.8
Install python on xserver to use pip
Until you install Arch Linux on VMware
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
If you try to install Python2 pip after installing Python3 pip and it is rejected
I can't install Dask with pip on Ubuntu
Note: What to do if pip install fails
How to install OpenGM on OSX with macports
Get data files from elsewhere during pip install
Run pip install on MacOS Python 3.7 or later
Eliminates SSL error when PIP Install on Windows.
If you get lost with HTTP redirects 301 and 302
Install ZIP version Python and pip on Windows 10
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl