error:ModuleNotFoundError: No module named 'vex'

This is the error that I get when trying to run my code in Visual Studio Code. I already have Vex Robotics installed on vscode and I have already tried “pip import vex” so I’m a bit confused as to what to do.

(also sorry if the solution is really obvious, I’m kind of new to vscode)

The “vex” module only exists on the brain ( you didn’t say which platform you are using). You cannot install it with pip and there is no need to.

With all due respect, that’s truely a obvious problem.
You are programming for a V5 robot. Therefor, the program can only run in the environment of the robot, not on your PC.
Now you can try burn your program into your robot. If you have a correct program, it may work.