In FME (2025.1.0.1, build 25609 at the time of writing), according to the official documentation, one can install Python packages using this command, e.g. on Windows:
C:\<install_dir>\FME> fme.exe python -m pip install <package_name>
and this works fine.
Indeed, it installs packages under:
C:\Users\<username>\Documents\FME\Plugins\Python\python<version>\
But how to properly uninstall a Python package in FME Form?
As one would naturally do in a standard Python environment, I naively attempted to run:
C:\<install_dir>\FME> fme.exe python -m pip uninstall <package_name>
But this fails in an obscure way:
C:\<install_dir>\FME> fme.exe python -m pip uninstall numpy
Python version 3.13 loaded successfully
Usage:
C:\<install_dir>\FME\fmepython313\python.exe -m pip uninstall [options] <package> ...
C:\<install_dir>\FME\fmepython313\python.exe -m pip uninstall [options] -r <requirements file> ...
no such option: --target
Error in running the Python command 'python %0'
Program Terminating
Translation FAILED.
The official documentation tells us how to install a Python package, but nothing about uninstalling.