Installation¶
To install the IDAES PSE framework, follow the set of instructions below that are appropriate for your needs and operating system. If you get stuck, please contact idaes-support@idaes.org.
The OS specific instructions provide information about optionally installing Miniconda. If you already have a Python installation you prefer, you can skip the Miniconda install section.
Note
IDAES supports Python 3.6 and above.
System | Section |
---|---|
Linux | Linux |
Windows | Windows |
Mac OSX | Mac/OSX |
Generic | Generic install |
Warning
If you are using Python for other complex projects, you may want to consider using environments of some sort to avoid conflicting dependencies. There are several good options including conda environments if you use Anaconda.
Windows¶
Install Miniconda (optional)
- Download: https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
- Install anaconda from the downloaded file in (1).
- Open the Anaconda Prompt (Start -> “Anaconda Prompt”).
- In the Anaconda Prompt, follow the Generic install instructions.
Linux¶
Install Miniconda (optional)
- Download: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- Open a terminal window
- Run the script you downloaded in (1).
Install Dependencies
The IPOPT solver depends on the GNU FORTRAN, GOMP, Blas, and Lapack libraries, If these libraries are not already installed on your Linux system, you or your system administrator can use the sample commands below to install them. If you have a Linux distribution that is not listed, IPOPT should still work, but you the commands to install the required libraries may differ. If these libraries are already installed, you can skip this and proceed with the next step.
Note
Depending on your distribution, you may need to prepend
sudo
to these commands or switch to the “root” user.apt-get (Current Ubuntu based distributions):
sudo apt-get install libgfortran4 libgomp1 liblapack3 libblas3
yum (Current RedHat based distributions, including CentOS):
yum install lapack blas libgfortran libgomp
Complete Generic Install
Follow the Generic install instructions.
Mac/OSX¶
Install Miniconda (optional)
- Download: https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- For the next steps, open a terminal window
- Run the script you downloaded in (1).
Complete Generic Install
Follow the Generic install instructions.
Generic install¶
The remaining steps performed in either the Linux or OSX Terminal or Powershell. If you installed Miniconda on Windows use the Anaconda Prompt or Anaconda Powershell Prompt. Regardless of OS and shell, the following steps are the same.
Install IDAES
Install IDAES with pip:
pip install idaes-pse
Run the idaes get-extensions command to install the compiled binaries:
idaes get-extensions
Warning
The IDAES binary extensions are not yet supported on Mac/OSX
Note
If you are installing on Linux, you can specify a specific platform. While most Linux builds are interchangeable, specifying a build can make managing dependencies considerably easier. By default Linux will use the CentOS 7 build. To specify a build use the command
idaes get-extensions --platform <platform>
. Supported Linux platforms are: rhel6, rhel7, rhel8, cetos6, centos7, centos8, ubuntu1804, ubuntu1910, and ubuntu2004. If you are not using a supported platform, everything should still work, just choose the platform that best matches your Linux distribution. You can also use theidaes get-extensions-platforms
command to see a list of supported platforms.
Run the idaes get-examples command to download and install the example files:
idaes get-examples
By default this will install in a folder “examples” in the current directory. The command has many options, but an important one is –dir, which specifies the folder in which to install.
for Mac and Linux users this would look like:
idaes get-examples --dir ~/idaes/examplesor, for Windows users, it would look like:
idaes get-examples --dir C:\Users\MyName\IDAES\ExamplesRefer to the full idaes get-examples command documentation for more information.
Run tests:
pytest --pyargs idaes -W ignore
You should see the tests run and all should pass to ensure the installation worked. You may see some “Error” level log messages, but they are okay, and produced by tests for error handling. The number of tests that failed and succeeded is reported at the end of the pytest output. You can report problems on the Github issues page (Please try to be specific about the command and the offending output.)