Discover the new mydSPACE services: License Management, the new dSPACE Help, and dSPACE Chatbot for User Documentation. Find more information and support on our dedicated support page. Learn more & get support

FAQ 456: Installation of Python pip on Ubuntu Linux

Question

How can I install Python pip for a dSPACE-supported version of Python on Ubuntu Linux?

Solution

Install the dSPACE software (currently Real-Time Testing or XIL API .NET) to get the dSPACE-supported version of Python. For instructions, refer to dSPACE Products for Linux.

The next steps depend on the installed dSPACE Release.

For dSPACE Release 2023-B, which supports Python 3.11 and Ubuntu 20.04, open a terminal and continue with the following steps:

Install the Debian package “testresources”.

sudo apt install python3-testresources

Install the latest pip for Python 3.11.

sudo python3.11 -m ensurepip --upgrade

You can now continue with the installation of other pip packages (for example, numpy).

python3.11 -m pip install numpy

You can now use it. For example:

python3.11 -c "import numpy; print(numpy.arange(1, 10))"

 

For dSPACE Release 2024-A, which supports Python 3.11 and Ubuntu 22.04, open a terminal and continue with these steps:

Install the Debian package “python3-pip”.

sudo apt install python3-pip

Update pip to its latest version for Python 3.11.

sudo python3.11 -m pip install pip --upgrade

You can now continue with the installation of other pip packages (for example, numpy).

python3.11 -m pip install numpy

You can now use it. For example:

python3.11 -c "import numpy; print(numpy.arange(1, 10))"

Tags

Date 2024-06-10
Product dSPACE Calibration API Package, Failure Simulation API Package, Platform API Package, Real-Time Testing
Information Type Frequently Asked Questions
Information Category Installation
dSPACE Release 2024-A, 2023-B

Stay up-to-date with our dSPACE direct newsletter service.

With our dSPACE newsletter service, we will keep you informed about current use cases and new solutions and products, as well as trainings and events. Sign up here for a free subscription.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.