modelx requires Python 3.6 or newer. modelx does not work with Python 3 older than version 3.6 or any version of Python 2.
The packages listed below are either required by modelx, or can be used with modelx to develop models more efficiently.
- NetworkX (>=2.0)
- Spyder (>=3.2.5)
Although you can install modelx without Pandas, it is highly recommended that you have Pandas installed, together with other packages Pandas depends on, such as NumPy, so that you can export Spaces and Cells to Pandas DataFrame and Series.
OpenPyXL is a package that supports reading from and writing to Excel files. Openpyxl is also not required, but it is desirable to hav it installed to enable modelx to interface with Excel files.
If you use modelx with Spyder,
a plugin for modelx is available.
spyder-modelx is a separate package to add custom IPython consoles
and Modelx explorer, a widget that shows the current model in a tree view.
The supported Spyder version is 3.2.5 or newer.
For how to install the plugin, see here.
Just like other Python packages, you can install
pip command from a terminal on Linux, or from a command prompt on
To install the current version of
$ pip install modelx
To upgrade to a newer version using the
$ pip install --upgrade modelx
modelx available only to you but others,
install it into your user directory using the
$ pip install --user modelx
Unpack the downloaded files and run the following command at the top of the source directory:
$ pip install .