Importing FMT in Python

To import FMT that you just compiled into Python, you need to have Python and pip installed on your computer.

If you don’t have Python installed, we recommand to you install Miniconda, the “light” version of the popular Anaconda Python distribution. Miniconda contains Python, pip, and many other packages that are usefull when using FMT.

There are two ways to import FMT into Python :

Use pip and the Python wheel that you have compiled

Python wheels are files that contain everything necessary for a Python module to be installed in your Python environment with the pip command. When installed in such a way, the module can be activated quicker in your python scripts.

To install the Python wheel that you’ve compiled, use the following command in a command prompt (if you have installed Python and pip independantly of Anaconda or Miniconda), or in an Anaconda prompt :

pip install "<path to FMT folder>\build\release\bin\Release/FMT-0.9.1-py3-none-any.whl"

Once this is done, you’ll be able to import FMT in your scripts more quickly :

from FMT import Models
from FMT import Parser
from FMT import Core
from FMT import Version

And that’s it, you’re done 🎊🎉! Now, you can start using FMT !

If you had any issues during the process of downloading and installing FMT, please post an issue on the issue page of the repository for FMT.
Previous