Error

Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

Solution

Add this line in your code: os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'