Skip to main content
Question

Python virtual environment


paetzold_s
Contributor
Forum|alt.badge.img+4


Hello there,

 

I’m currently working on a workflow for which I need a python package that is not preinstalled with FME.

I tried installing the package according to this help page:

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/Installing-Python-Packages.htm

 

Unfortunately I got a dependency collision with other packages that are already installed.
So I tried setting up a virtual environment but FME doesn't seem to support custom venvs.

https://community.safe.com/transformers-9/how-to-integrate-a-custom-python-environment-27779

 

My question is:
Without uninstalling or up-/downgrading the already installed python packages,
what is the official way to avoid such dependency issues?

 

Many thanks in advance.

3 replies

hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • April 29, 2025

You can point FME to use a different Python Installation, documentation on how to do that is here: https://support.safe.com/hc/en-us/articles/25407517871629-Choosing-a-different-Python-Interpreter-in-FME-installation


paetzold_s
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • May 5, 2025

Thank you for your quick response. What I was tripping over was that I need an “embedded” Python installation (https://www.python.org/downloads/windows/).

I tried setting up my virtual environment with the included venv module of Python, but this doesn’t include the necessary dll that has to be selected in the FME settings.

Probably obvious for most people but maybe this could be added to documentation for the remaining 5% like me. 


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • May 7, 2025

  

@LizAtSafe Is the documentation part something you can consider?

There is this Idea to introduce support for venvs here: 

hkingsbury

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings