To fix try the following:
1 Right click on My Computer (or This PC)
2 Select “Properties”
3 From the Basic Information screen, select “Advanced System Settings”
4 Select “Environment Variables” from the Advanced System Properties tab
5 Locate and select the variable “KMP_AFFINITY”
6 Once selected, press “Edit”
7 On the Edit System Variable screen, change the Variable value to“disabled”
If you don not see the “KMP_AFFINITY” in the variable list provided
1 Click on “New” under the system variables section
2 Type “KMP_AFFINITY” in the variable name field
3 Type “disable” in the variable field
4 Then click “Ok”