      if i == "" or i == "N" or i == "n":
          ERROR('Please install system dependencies to continue')
  
  def Check_Missing_Dep():
      global Missing_Packages, Installed_Packages
      Missing_Packages = []
      for pkg in Required_Packages:
          key = pkg.split("==")[0]
          if not key in Installed_Packages:
              Missing_Packages.append(pkg)
 
</s> remove         self.handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
                        for i in range(self.device_count)]
 </s> add         if is_macos:
            self.handles = pynvx.cudaDeviceGetHandles(ignore=True)
        else:
            self.handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
                            for i in range(self.device_count)] </s> remove import pynvml
 </s> add import platform

if platform.system() == 'Darwin':
    import pynvx
    is_macos = True
else:
    import pynvml
    is_macos = False </s> remove         try:
            self.device_count = pynvml.nvmlDeviceGetCount()
        except pynvml.NVMLError:
            self.device_count = 0
 </s> add         if is_macos:
            self.device_count = pynvx.cudaDeviceGetCount(ignore=True)
        else:
            try:
                self.device_count = pynvml.nvmlDeviceGetCount()
            except pynvml.NVMLError:
                self.device_count = 0
    global Missing_Packages, Installed_Packages, ENABLE_CUDA, Is_MacOS
    if ENABLE_CUDA and Is_MacOS:
        Required_Packages.extend(MacOS_Required_Packages)
      if i == "" or i == "N" or i == "n":
          ERROR('Please install system dependencies to continue')
  
  def Check_Missing_Dep():
    global Missing_Packages, Installed_Packages, ENABLE_CUDA, Is_MacOS
    if ENABLE_CUDA and Is_MacOS:
        Required_Packages.extend(MacOS_Required_Packages)
      Missing_Packages = []
      for pkg in Required_Packages:
          key = pkg.split("==")[0]
          if not key in Installed_Packages:
              Missing_Packages.append(pkg)
keep keep keep keep replace keep keep keep keep keep
 Fixed face extract with dlib on OS X (#510)

* fix: gpu stat for OS X
- Use pynvx to get GPU info on OS X
- fix face extract with dlib

Issue #488 
setup.py