At the time of the first Pyomo release after the end-of-life of a minor Python
version, Pyomo will remove testing for that Python version.
Conditional Dependencies
Extensions to Pyomo, and many of the contributions in pyomo.contrib
,
often have conditional dependencies on a variety of third-party Python
packages including but not limited to: matplotlib, networkx, numpy,
openpyxl, pandas, pint, pymysql, pyodbc, pyro4, scipy, sympy, and
xlrd.
A full list of conditional dependencies can be found in Pyomo’s
setup.py
and displayed using:
python setup.py dependencies --extra optional
Pyomo extensions that require any of these packages will generate
an error message for missing dependencies upon use.
When using pip, all conditional dependencies can be installed at once
using the following command:
pip install 'pyomo[optional]'
When using conda, many of the conditional dependencies are included
with the standard Anaconda installation.
You can check which Python packages you have installed using the command
conda list
or pip list
. Additional Python packages may be
installed as needed.