Skip to content

Add missing doc about using venv and conflating python interpreters #5596

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

Closed
wants to merge 1 commit into from
Closed
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
7 changes: 7 additions & 0 deletions source/How-To-Guides/Using-Python-Packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ Next, install the Python packages that you want in your virtual environment:

python3 -m pip install gtsam pyserial… etc

Next in your ``setup.cfg`` you must inform distutils of the virtual environment interpreter when installing entry points. Otherwise it will default to the system interpreter and fail to find any of the virtual environment's libraries.

.. code-block:: ini

[build]
executable=/usr/bin/env python3

Now you can build your workspace and run your python node that depends on packages installed in your virtual environment.

.. code-block:: console
Expand Down
Loading