简体   繁体   中英

Downloading dlib on Raspberry Pi, pip keeps outputting error when I try?

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dhth2xud/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-7p82qhms-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-dhth2xud/dlib/

This is the error I keep getting, when simply running sudo pip3 install dlib .

I ran into the same error. Turns out you need to install those prerequisits on the Raspberry Pi:

sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev

I read that it helps to free up RAM by disabling GUI start ( sudo raspi-config and under Boot options change from GUI to Console) but that alone didn't help. I then followed the Ubuntu installation instructions here (the 3 commands above) and then sudo pip3 install dlib stopped showing this error and started installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM