Users are unable to import or load ArcPy in ArcMap with the installed version of Python.
There are several possible causes:
A problem occurred during the installation of Python while installing ArcGIS for Desktop.
The incorrect path to the default Python installation is being provided in the Windows Environment Variables.
An incorrect folder is used for the PythonWin installation (if applicable).
Users can install different versions or bit versions of Python. ArcMap requires Python 2.7.x (32-bit). For more information, refer to the following article, FAQ: What version of Python is used in ArcGIS?
Using a version of Python other than the version expected with ArcGIS can lead to compatibility issues.
Solution or Workaround
Use one or all of the following solutions to resolve this issue.
To ensure the correct default path is used during installation, uninstall PythonWin, follow Step 4 to repair ArcMap, and reinstall PythonWin.
If users have ArcGIS for Server installed on the same machine, a 64-bit Python is also installed. This leads to the script calling the wrong bit version of Python.
Users are unable to select the default installation path for PythonWin during installation. The steps to repair ArcMap are crucial to ensure the correct destination path.