Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

Python • Re: Library CANTools

$
0
0
Working OK for me on a Pi4 running Trixie

Code:

mkdir myenvcd myenvpython -m venv --system-site-packages envsource env/bin/activatepip install cantools
We can start pythion REPL and import cantools. We can also check the installed version:

Code:

pip list | grep cantoolscantools                     40.7.1
If we deactivate the venv we get the error

Code:

import cantoolsModuleNotFoundError: No module named 'cantools'

Statistics: Posted by neilgl — Sun Oct 12, 2025 7:57 pm



Viewing all articles
Browse latest Browse all 8051

Trending Articles