How to install face_recognition?
See original GitHub issueThere is something seriously wrong with this script. I tried 2 methods and both gave me nothing. I am trying on Debian 8 Amd64.
Method 1 returns so many errors after the last command that it’s insane:
apt-get install libcurl3
apt-get install cmake
apt-get install git
apt-get install python3.4
apt-get install python3-pip
apt-get install libboost-all-dev
mkdir temporarydir
cd temporarydir
git clone https://github.com/davisking/dlib.git
cd dlib
mkdir build
cd build;
cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1
cmake --build .
cd ..
python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA
pip3 install scipy
pip3 install face_recognition
Method 2 is simpler:
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
bash Anaconda-2.3.0-Linux-x86_64.sh
conda create -n py35 python=3.5
activate py35
conda config --add channels conda-forge
conda install numpy
conda install scipy
conda install dlib
pip install face_recognition
conda install scipy
As you can see I installed scipy twice and yet when I try to run face_recognition I get:
Traceback (most recent call last):
File "/usr/local/bin/face_recognition", line 7, in <module>
from face_recognition.cli import main
File "/usr/local/lib/python3.4/dist-packages/face_recognition/__init__.py", line 7, in <module>
from .api import load_image_file, face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/usr/local/lib/python3.4/dist-packages/face_recognition/api.py", line 3, in <module>
import scipy.misc
ImportError: No module named 'scipy'
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (6 by maintainers)
Top Results From Across the Web
How to Install Face Recognition in Python on Windows?
Follow the below steps to install the Face Recognition on Windows using the setup.py file: Step 1: Download the latest source package of...
Read more >Installation — Face Recognition 1.4.0 documentation
To install Face Recognition, run this command in your terminal: $ pip3 install face_recognition. This is the preferred method to install Face Recognition, ......
Read more >face-recognition - PyPI
When you install face_recognition, you get a simple command-line program. called face_recognition that you can use to recognize faces in a. photograph or...
Read more >How To pip install face recognition Library In Jupyter Notebook
pip install face-recofnitonAs it will always install the latest stable release, this is the preferred method for installing Face Recognition ...
Read more >How to Install Face Recognition for Python 3.8 on Windows 10
PLEASE USE PYTHON 3.8 | How to Install Face Recognition for Python 3.8 on Windows 10 | Cmake | DlibRecognize and manipulate faces...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This was what i did
Here I install face_recognition once to make sure all the dependencies is included.
Note that here the installation will fail because pip fail to detect the
dlibconda installed earlierTherefor i run
This should complete installation. I was able to run dlib fine.
For more info I recommend checking out #81
@Dingo64 I don’t know the answer for sure since this seems like a machine-specific issue and anything could be the cause. But if I was debugging it, it would start by removing libjpeg-turbo* and libjpeg62-turbo* and seeing if that helps. Sorry I don’t have a better answer.