Solvedface_recognition How to install face_recognition?

There 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'
29 Answers

✔️Accepted Answer

This was what i did

conda create -n py36 python=3.6
activate py36
conda config --add channels conda-forge
conda install numpy
conda install scipy
conda install dlib

Here I install face_recognition once to make sure all the dependencies is included.

pip install face_recognition

Note that here the installation will fail because pip fail to detect the dlib conda installed earlier

Therefor i run

pip install --no-dependencies face_recognition

This should complete installation. I was able to run dlib fine.

For more info I recommend checking out #81

More Issues: