title: Error while importing python cv2 in Azure function
body: <p>We are deploying python based Azure Function using Azure CLI but getting this below error while importing cv2 library.</p>
  
  <p>ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory</p>
  
  <p>We are not using any docker image. Would prefer a non-docker based solution.</p>
  
  <pre><code>Exception: ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
  Stack:   File "/usr/local/lib/python3.6/site-packages/azure_functions_worker/dispatcher.py", line 239, in _handle__function_load_request
      func_request.metadata.entry_point)
    File "/usr/local/lib/python3.6/site-packages/azure_functions_worker/loader.py", line 66, in load_function
      mod = importlib.import_module(fullmodname)
    File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 994, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 941, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "&lt;frozen importlib._bootstrap&gt;", line 994, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 955, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 665, in _load_unlocked
    File "&lt;frozen importlib._bootstrap_external&gt;", line 678, in exec_module
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "/home/site/wwwroot/FaceFinderHttpTrigger/__init__.py", line 11, in &lt;module&gt;
      import cv2
    File "/home/site/wwwroot/.python_packages/lib/python3.6/site-packages/cv2/__init__.py", line 3, in &lt;module&gt;
      from .cv2 import *
  </code></pre>