You are here: Workspace BasicsUser Interface ReferenceWorkspace NavigatorWorkspace ParametersInstalling Python Packages to FME Desktop

Installing Python Packages to FME Desktop

If you want workspaces to reference custom Python modules that are part of a Python package, you must install the package to FME Desktop. To install, Safe recommends using the pip package management system.

Installing pip

  1. To get pip, securely download the contents of https://bootstrap.pypa.io/get-pip.py.
  2. From a command prompt, navigate to the directory to which get-pip.py was downloaded.
  3. Run the command:
  4. > fme python get-pip.py

Installing Python Packages

To install a package, run the following command:

> python -m pip install <package_name> --target C:\Users\<user>\Documents\FME\Plugins\Python

For example, to install a package named PyExecJS:

> python -m pip install PyExecJS --target C:\Users\<user>\Documents\FME\Plugins\Python

Note: Substitute <user> with the Windows user name.

The specified directory is accessible to FME's Python interpreter because it will be added to its Python path.