Question

Custom Python Interpreter - FME 2019 / MacOS

  • 29 April 2019
  • 2 replies
  • 2 views

Hi,

I'm needing to use a custom python interpreter in 2019 on MacOS in order to use the pandas library.

The option to use Custom Interpreters appears to be missing in 2019.0.0.1 - Build 19246.

Is this normal behaviour i.e. has this functionality been removed?

 

Thanks,

Campbell.


2 replies

Userlevel 3
Badge +17

Hi @campbellfleury

This is expected behaviour. The Custom Python Interpreter option was removed in FME 2019 for macOS and Linux platforms.

Badge

@campbellfleury

After realising FME 2019 for MacOS has no option for choosing a custom python interpreter, I had to do the following to avoid maintaining two sets of site-packages:

- Download and install Python 3.7 from the web (comes with pip3)

- Manage packages via pip3 (eg pip3 install *packagename*)

- Get rid of FME’s site-packages directory (or rename it)

mv /users/*USERNAME*/.local/lib/python3.7/site-packages site-packages_fmeorig

- In it’s place, create a symbolic link to the external Python 3.7’s directory:

sudo ln -s /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ /users/*USERNAME*/.local/lib/python3.7/

- Done! Now your python packages installed via pip3 should be available both in IDLE and FME.

Reply