If you don't want to use Homebrew (for some reason), you can try installing CMake for Mac directly using the installers (dmg or tar.gz) from here.
$ brew install # or or brew install # get whichever is the latest versionĬheck CMake installation $ brew info cmakeįinally, install dlib with pip $ python3 -m pip install dlib
Download a package Install TensorFlow with Pythons pip package manager. For this, you need to install Docker for Mac. Or try the preview build (unstable) pip install tf-nightly. Click the link to download the latest Python 3 release on your computer. In your browser, navigate to the Python Releases for macOS page, on Pythons official website. macOS 10.12.6 (Sierra) or later (no GPU support) WSL2 via Windows 10 19044 or higher including GPUs (Experimental). If you already have a version of Python 3 installed, upgrade the package with the brew upgrade command: brew upgrade python3 Upgrade Python with the Installer. Python version Maintenance status First released End of support Release schedule 3.10 bugfix 2026-10 PEP 619 3.9 bugfix 2025-10 PEP 596 3.
It also prevents you from having to use sudo to install stuff on your system. Download a pip package, run in a Docker container, or build from source. Download Python Download the latest version for Windows Active Python Releases For more information visit the Python Developer's Guide. Homebrew manages the installation of packages, tools, libraries that might depend on system-related tools, paths, etc. I suggest using Homebrew to install Python3 (which includes pip3) and CMake. I think there's more to the error message and it's probably related to CMake, either it's not installed properly or it's not compatible with the pip3 install dlib.