-1

I want to use it to code my EV3 brick. I read all the answers on stackoverflow for similar questions, but none of them helped.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Liam K.
  • 75
  • 7

2 Answers2

2

Have you installed the LEGO EV3 Extension?

And you can install the pybricks like this pip install git+https://github.com/pybricks/pybricks-api@master

Then you need to import it like this:

from pybricks.hubs import EV3Brick

You can refer to this link for more details, some people others had to submit a feature request of this early.

Steven-MSFT
  • 7,438
  • 1
  • 5
  • 13
  • I did all of this and it still doesn't work, I set up a virtual environment, installed pybricks and the extension, and did everything in your link – Liam K. Nov 04 '21 at 16:48
  • Edit: It worked, I will soon post the solution – Liam K. Nov 04 '21 at 16:53
0

To solve the problem I had to comment out the last two settings in settings.json

Dharman
  • 30,962
  • 25
  • 85
  • 135
Liam K.
  • 75
  • 7