Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explain the relevant PYTHONPATH when installing from source
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 15 Jun 2023 08:36:19 +0000 (10:36 +0200)
committerAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Thu, 15 Jun 2023 16:58:51 +0000 (18:58 +0200)
docs/source/Installing_SimGrid.rst

index c58f470..2e1143b 100644 (file)
@@ -424,3 +424,13 @@ simgrid without downloading the source with pip:
 .. code-block:: console
 
   $ pip install simgrid
+
+If you installed SimGrid to a non-standard directory (such as ``/opt/simgrid`` as advised earlier), you should tell python where
+to find the libraries as follows (notice the ``/lib`` added to the configured prefix).
+
+.. code-block:: console
+
+  $ PYTHONPATH="/opt/simgrid/lib" python your_script.py
+
+You can add the PYTHONPATH variable to your bash profile to not specify it each time by adding this line to your ``~/.profile``:
+``export PYTHONPATH=$PYTHONPATH:/opt/simgrid/lib/``