Skip to content

Commit 01af02b

Browse files
author
Murilo Marinho
committed
[installing_python.rst] Updating to Ubuntu 24.04 versions.
1 parent 436759f commit 01af02b

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/source/preamble/python/installing_python.rst

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Installing Python on Ubuntu
77
If you change or try to tinker with the default Python version of Ubuntu, your system will most likely **BREAK COMPLETELY**.
88
Do not play around with the default Python installation, because Ubuntu depends on it to work properly (or work at all).
99

10-
In Ubuntu 22.04, Python is already installed!
10+
In Ubuntu, Python is already installed!
1111
In fact, Ubuntu would not work without it. Let's check its version by running
1212

1313
.. code-block:: console
@@ -18,9 +18,9 @@ which should output
1818

1919
.. code-block:: console
2020
21-
Python 3.10.6
21+
Python 3.12.3
2222
23-
If the :code:`3.10` part of your version is different (e.g. :code:`3.9` or :code:`3.11`\), get this fixed because this tutorial will not work for you.
23+
If the :code:`3.12` part of your version is different, this tutorial might not work for you. Please make sure to use the default Python in your Ubuntu.
2424

2525
.. warning::
2626
Note that the command is :program:`python3` and not :program:`python`. In fact, the result of
@@ -50,13 +50,13 @@ which should output something similar to
5050

5151
.. code-block:: console
5252
53-
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
53+
Python 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0] on linux
5454
Type "help", "copyright", "credits" or "license" for more information.
5555
>>>
5656
57-
in particular, if the :code:`GCC 11` is different, e.g. :code:`GCC 9` or :code:`GCC 12`\, then get this fixed because this tutorial will not work for you.
57+
in particular, if the :code:`GCC 13` is different, then this tutorial might not work for you.
5858

59-
As you already know, to exit the `interactive shell <https://docs.python.org/3.10/tutorial/interpreter.html>`_ you can use :kbd:`CTRL+D` or type :code:`quit()` and press :kbd:`ENTER`.
59+
As you already know, to exit the `interactive shell <https://docs.python.org/3.12/tutorial/interpreter.html>`_ you can use :kbd:`CTRL+D` or type :code:`quit()` and press :kbd:`ENTER`.
6060

6161
Some Python packages must be installed through :program:`apt`
6262
-------------------------------------------------------------
@@ -83,7 +83,7 @@ When you want to isolate your environment, use :program:`venv`
8383
Until that is handled, we are not going to use :program:`venv` for the ROS2 tutorials.
8484
However, we will use :program:`venv` to protect our ROS2 environment from these Python preamble tutorials.
8585

86-
Using :program:`venv` (`More info <https://docs.python.org/3.10/library/venv.html>`_) is quite straightforward.
86+
Using :program:`venv` (`More info <https://docs.python.org/3.12/library/venv.html>`_) is quite straightforward.
8787

8888
Create a :file:`venv`
8989
^^^^^^^^^^^^^^^^^^^^^
@@ -151,20 +151,20 @@ then, we install
151151

152152
.. code-block:: console
153153
154-
python3 -m pip install dqrobotics
154+
python3 -m pip install dqrobotics --break-system-packages
155155
156156
which will result in something similar to (might change depending on future versions)
157157

158158
.. code-block:: console
159159
160-
Collecting dqrobotics
161-
Downloading dqrobotics-23.4.0a15-cp310-cp310-manylinux1_x86_64.whl (551 kB)
162-
---------------------------------------- 551.4/551.4 KB 6.3 MB/s eta 0:00:00
163-
Collecting numpy
164-
Downloading numpy-1.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.6 MB)
165-
---------------------------------------- 17.6/17.6 MB 7.4 MB/s eta 0:00:00
166-
Installing collected packages: numpy, dqrobotics
167-
Successfully installed dqrobotics-23.4.0a15 numpy-1.25.0
160+
Collecting dqrobotics
161+
Downloading dqrobotics-25.4.0a17-cp312-cp312-manylinux2014_aarch64.whl.metadata (2.9 kB)
162+
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from dqrobotics) (1.26.4)
163+
Downloading dqrobotics-25.4.0a17-cp312-cp312-manylinux2014_aarch64.whl (512 kB)
164+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 512.5/512.5 kB 14.0 MB/s eta 0:00:00
165+
[...]
166+
Installing collected packages: dqrobotics
167+
Successfully installed dqrobotics-25.4.0a17
168168
169169
Removing libraries (installed with :program:`pip`)
170170
--------------------------------------------------
@@ -173,18 +173,18 @@ We can remove the library we just installed with
173173

174174
.. code-block:: console
175175
176-
python3 -m pip uninstall dqrobotics
176+
python3 -m pip uninstall dqrobotics --break-system-packages
177177
178178
resulting in
179179

180180
.. code-block:: console
181181
182-
Found existing installation: dqrobotics 23.4.0a15
183-
Uninstalling dqrobotics-23.4.0a15:
184-
Would remove:
185-
/home/murilo/ros2tutorial_venv/lib/python3.10/site-packages/dqrobotics-23.4.0a15.dist-info/*
186-
/home/murilo/ros2tutorial_venv/lib/python3.10/site-packages/dqrobotics/*
187-
Proceed (Y/n)?
182+
Found existing installation: dqrobotics 25.4.0a7
183+
Uninstalling dqrobotics-25.4.0a7:
184+
Would remove:
185+
/usr/local/lib/python3.12/dist-packages/dqrobotics-25.4.0a7.dist-info/*
186+
/usr/local/lib/python3.12/dist-packages/dqrobotics/*
187+
Proceed (Y/n)?
188188
189189
.. hint::
190190

@@ -195,7 +195,7 @@ Then, press :kbd:`ENTER`, which results in
195195

196196
.. code-block:: console
197197
198-
Successfully uninstalled dqrobotics-23.4.0a15
198+
Successfully uninstalled dqrobotics-25.4.0a7
199199
200200
When using :program:`pip`, do **NOT** use :code:`sudo`
201201
------------------------------------------------------

0 commit comments

Comments
 (0)