If you want to use Python 32Bit, set PYTHONHOME to the appropriate python.exe-Path:
>set PYTHONHOME=C:\Python27\ArcGIS10.2
Installing Modules:
Change to the unpacked Module-Code:
eg:
>cd c:\Temp\Python27\setuptools-5.4.2
>C:\Python27\ArcGIS10.2\python.exe setup.py install
When installing with "pip install Module", run pip 32Bit:
C:\Python27\ArcGIS10.2\Scripts\pip.exe install Module
Running Python 32Bit:
>C:\Python27\ArcGIS10.2\python.exe yourcode.py
When you want to use Python 64Bit, set PYTHONHOME to the appropriate python.exe-Path:
>set PYTHONHOME=C:\Python27\ArcGISx6410.2
Installing Modules:
Change to the unpacked Module-Code:
eg:
>cd c:\Temp\Python27\setuptools-5.4.2
>C:\Python27\ArcGISx6410.2\python.exe setup.py install
When installing with "pip install Module", run pip 64Bit:
C:\Python27\ArcGISx6410.2\Scripts\pip.exe install Module
Running Python 64Bit:
>C:\Python27\ArcGISx6410.2\python.exe yourcode.py
Always install all Python-Modules in 32 and 64Bit: