An interpreter is a library which enables you to run Python scripts. This may also be referred to as a Python installation. FME installs its own Python interpreter, but you may wish to use a different one.
There are various reasons you might choose a different Python interpreter:
If you are installing python for use with FME Server you should choose the "Install for all users" option in the python installer, other wise we recommend you use the option "Install just for me".
Also note that you will not be able to use 64-bit Python through a 32-bit version of FME, or vice versa.
It depends on how you installed Python, and what your OS is.
If you installed 32-bit Python "for all users" on a 32-bit computer, it will be in c:\Windows\System32
If you installed 32-bit Python "for all users" on a 64-bit computer, it will be in c:\Windows\SysWOW64
If you installed 64-bit Python "for all users" on a 64-bit computer, it will be in c:\Windows\System32 (I know, me neither).
If you installed Python "just for me", it will be in the Python installation folder, for example c:\Python26
To choose a different Python interpreter for FME requires you to select that Interpreter's DLL file. In FME 2012 and later the procedure is as follows:
NOTE: This option controls FME as a whole, and not just the current workspace. Therefore, all FME processes will use this alternative version of Python, until you revert this option.
FME version 2011 (and earlier) did not have the Python Interpreter option. Therefore the procedure is more complex.
In doing this for 2011, there are known concerns or issues:
See the FME Server Administrator's Guide to configure the python interpreter.
1. fme APPLY_SETTINGS "Python/Use Custom Python" true 2. fme APPLY_SETTINGS "Python/Python Interpreter" <pythonpath>
fme APPLY_SETTINGS "Python/Python Interpreter" "C:/fmepython27"This should be done on each computer running an FME Engine.
fme APPLY_SETTINGS "Python/Use Custom Python" false
If for some reason you cannot change the user running the FME Server Windows service to the user you are logged in as it is also possible to redefine the Python Interpreter to use for the FME Engine by creating two registry entries.
The are two .reg files attached one for 32 bit and one for 64 bit FME. Chose the appropriate file and edit the path to the python interpreter to reflect the path that you want to use. You can then add the registry key by double clicking on the file.
No one has followed this yet.