title: ModuleNotFoundError: No module named 'face_recognition'
body: <pre><code>import face_recognition
  
  image = face_recognition.load_image_file("My_Image.png")
  face_locations = face_recognition.face_locations(image)
  print("I found {} face(s) in this photograph.".format(len(face_locations)
  </code></pre>
  
  <p>When I run above code, I've found following error message.</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "sample.py", line 1, in
    
        import face_recognition</p>
  </blockquote>
  
  <p>And I've checked that I've found following error message when I've installed <code>face_recognition</code> library.</p>
  
  <p><code>pip install face_recognition</code></p>
  
  <pre><code>  RuntimeError:
    *******************************************************************
     CMake must be installed to build the following extensions: dlib
    *******************************************************************
  
  
    ----------------------------------------
    Failed building wheel for dlib
    Running setup.py clean for dlib
  Failed to build dlib
  Installing collected packages: dlib, Pillow, numpy, face-recognition-models, face-recognition
  </code></pre>
  
  <blockquote>
    <p>Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools,
    tokenize;<strong>file</strong>='/private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-install-gk35rom0/dlib/setup.py';f=getattr(tokenize,
    'open', open)(<strong>file</strong>);code=f.read().replace('\r\n',
    '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install
    --record /private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-record-3enjhgfq/install-record.txt
    --single-version-externally-managed --compile" failed with error code 1 in
    /private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-install-gk35rom0/dlib/</p>
  </blockquote>
  
  <p>My python version is <code>Python 3.7.1</code> and pip is <code>pip 19.0.3 from /Library/Python/2.7/site-packages/pip (python 2.7)</code></p>