i have a raspberry Pi Zero V.1. I have pymodbus installed but struggle to get the latest version. On pypi.org the latest version is 3.11.4. The version on my pi is 3.0.0-7
If i type (after trying: pip3 install pymodbus and getting the error "This environment is externally managed....")
sudo apt install python3-pymodbus
i get the answer: python3-pymodbus is already the newest version (3.0.0-7)
Why does the system tell me that 3.0.0-7 is the latest version if the latest version is actually 3.11.4?
To answer my question (thanks to robertklep in the comments): I was not aware that apt install behaves differently compared to pip3. 'apt install' draws packages from linux distribution whereas pip3 draws packages from the supplier (in my case Pypi). I was trying to avoid venv´s because my code runs by a user and also by a service...i know there are solutions for this but it adds to complexity....
Later: It turned out to be rather straightforward thanks to this tutorial!