How Do I Get External Libraries to Work? #1914
-
I've been trying to get numpy and scikit-learn to work, since I'm using them to control a line-following robot. However, the following error occurs:
Does anyone know how to get them working? Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Pybricks uses MicroPython, which is a small implementation of Python that can run on microcontrollers like those found in SPIKE Prime. Full Python with libraries like That said, line-following can work perfectly find without |
Beta Was this translation helpful? Give feedback.
Yes, you can make lists or tuples, and even a Matrix. You can do basic Matrix operations like addition or multiplication but not inversion/regression etc.
In your case, if you just want to store values like that, you don't need the arrays. You can just make lists of lists: