[PYTHON] Notes on installing dlib on mac

install boost

Reference

sudo brew install boost
sudo brew install boost-python 

ski-image

sudo pip install scikit-image

dlib installation

sudo pip install dlib

Error when running dlib

50071 FATAL [1] dlib.gui_core: Unable to connect to the X display.
Traceback (most recent call last):
  File "./gen_detecter.py", line 81, in <module>
    win_det = dlib.image_window()
RuntimeError: Failed to initialize X11 resources

According to here, you will need to include XQuartz. When I put it in this method, the error disappeared

Recommended Posts

Notes on installing dlib on mac
Notes on installing Python on Mac
Notes on installing pipenv on Mac
Notes on installing PycURL
Notes on installing Anaconda 3 on Windows
Notes on installing Python on CentOS
Notes on installing Python using PyEnv
Notes on installing Ubuntu 18.04 on the XPS 15 7590
(Beginner) Notes on using pyenv on Mac
Notes for installing Sublime Text on Ubuntu
Notes on Flask
Notes on building Python and pyenv on Mac
python on mac
Check! Troubleshooting when installing PyObjc on Mac
Notes on installing Caffe in CPU mode on Mac OSX 10.11 (El Captain)
Notes on installing Python3 and using pip on Windows7
Install pyenv on mac
Notes on neural networks
Pyenv + virtualenv on Mac
Celery notes on Django
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
numba installation on mac
Installing pandas on python2.6
Run OpenMVG on Mac
Install Python 3.4 on Mac
Installing pyenv on ubuntu 16.04
Install Caffe on Mac
Install mecab on mac
Notes on using Alembic
Install mecab-python on Mac
Try deepdream on Mac
Notes on SciPy.linalg functions
Instructions for installing CUDA 7.5 on Mac (El Capitan) + Homebrew
Installing Python 3 on Mac and checking basic operation Part 1
Minimum notes when using Python on Mac (Homebrew edition)
Notes on tf.function and Tracing
Notes on python's sqlite3 module
Pyramid + mongodb environment on Mac
Install pygame on python3.4 on mac
Notes on * args and ** kargs
Notes on defining PySide slots (2)
[Django] Notes on using django-debug-toolbar
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Notes on pyenv and Atom
Notes on defining PySide slots
Install numba on your Mac
[Python] Notes on data analysis
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Launch local server on mac
Notes on optimization using Pytorch
Notes on studying multidimensional scaling
Install Django on your Mac
Pyenv on Mac OSX Mavericks
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Use matplot libwidget on mac