Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: fix formatting #2470

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions documentation/python_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ If this does not work for you, please follow the full instructions below.
Installation on Linux
+++++++++++++++++++++

Ubuntu 22.04
------------
Ubuntu 22.04 / 24.04
--------------------

Install the AMICI dependencies via ``apt``
(this requires superuser privileges):
Expand All @@ -44,8 +44,8 @@ Install the AMICI dependencies via ``apt``
# optionally for HDF5 support:
sudo apt install libhdf5-serial-dev

# optionally for boost support (thread-specific CPU times, extended math functions, serialization)
libboost-chrono-dev libboost-math-dev libboost-serialization-dev
# optionally for boost support (thread-specific CPU times, extended math functions, serialization)
libboost-chrono-dev libboost-math-dev libboost-serialization-dev

Install AMICI:

Expand Down Expand Up @@ -203,9 +203,8 @@ Newer installations could be located under

so that it matches your directory structure.
This will download OpenBLAS and compile it, creating

C:\\BLAS\\OpenBLAS\\lib\\openblas.lib
C:\\BLAS\\OpenBLAS\\bin\\openblas.dll
``C:\\BLAS\\OpenBLAS\\lib\\openblas.lib`` and
``C:\\BLAS\\OpenBLAS\\bin\\openblas.dll``.

You will also need to define two environment variables:

Expand All @@ -231,16 +230,16 @@ Now you need to make sure that all required DLLs are within the scope of the
``PATH`` variable. In particular, the following directories need to be included
in ``PATH``:

C:\\BLAS\\OpenBLAS\\bin
C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\ucrt\\DLLs\\x64
* ``C:\BLAS\OpenBLAS\bin``
* ``C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64``

The first one is needed for ``openblas.dll`` and the second is needed for the
Windows Universal C Runtime.

If any DLLs are missing in the ``PATH`` variable, Python will return the
following error upon ``import amici``:

ImportError: DLL load failed: The specified module could not be found.
``ImportError: DLL load failed: The specified module could not be found.``

Almost all of the DLLs are standard Windows DLLs and should be included in
either Windows or Visual Studio. But, in case it is necessary to test this,
Expand Down