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

Python • Basic Problem: Cannot install Python Libraries for CAN HAT

$
0
0
Working with a Waveshare CAN HAT, Rpi v5 and Bookworm.

I can successfully send and receive CAN messages from the console, hardware is OK. Problem is, I want to do this programmatically in Python and I cannot get the libraries to install.

Everything is going great in the installation:
https://www.waveshare.com/wiki/RS485_CAN_HAT
(...and) https://www.waveshare.com/wiki/Librarie ... on_for_RPi

Until:
sudo apt-get install python3-can
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-can

In the same directory, I have a file that I downloaded called "python3-can_4.1.0-1_all.deb".

I have tried a venv (maybe incorrectly), tried using pip to install and no luck.

Seems like there is some basic path problem or some way to tell apt that the package is out there? Doesn't help that the Waveshare documentation seems somewhat outdated, at least from my noob perspective.

Thanks,
Steve

Statistics: Posted by 2n2222 — Thu Jun 12, 2025 3:56 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles