title: numpy.core.multiarray failed to import while invoking python module through C++ application developed in xcode
body: <p>I am using anaconda to maintain python virtual environment. I have a python module which i want to invoke from c++ application developed through xcode 9.2.</p>
  
  <p><code>pModule = PyImport_Import(pName)</code> fails in c++ application with error</p>
  
  <pre><code>ImportError: numpy.core.multiarray failed to import.
  </code></pre>
  
  <p><code>pName</code> here refers to a module <code>xyz.py</code>. xyz's <code>__init__.py</code> imports cv2 which in turn is using <code>from .cv2 import *</code>. This fails with error "numpy.core.multiarray failed to import". Packages for opencv and numpy is installed in same virtual environment still its not able to import numpy's core.multiarray module.</p>
  
  <p>To me this doesn't seems to be a path issue, as I am using PySys_SetPath to set path where packages are installed , path looks like <code>anaconda/envs/XYZ/lib/python3.5/site-packages</code>.</p>
  
  <p>Just to add more info, xyz module i am using is for object detection, to be more specific its imageAI object detection module. So under python3.5/site-packages I have imageai's Detection module ( python3.5/site-packages/imageai/Detection/). In Detection there is <strong>init</strong>.py which is trying to import cv2. The error received is when cv2 trying to import numpy.core.multiarray, both cv2 and numpy exists in path python3.5/site-packages.</p>