Pip install

Can you import libraries into Vex IQ coding website with pip and if so you do you do it? also does anyone know what version of python the compiler runs on?

Nope

2 Likes

Is there anyway to import libraries?

If it’s a really small library, you may be able to use the technique I describe in this topic about Python on V5.

But IQ generation 2 has very little memory, so probably not very practical.

I want to make a robot that will solve rubik’s cubes and I’m trying to figure out how to import a program like kociemba.

But it requires a lot of memory so it probably will be hard to do

I have seen rubik’s cube solving on IQ generation 1 in the past, but I think it used an android phone to do the cube analysis and solving, just sending instructions to the IQ brain.

I had thought I might try at some point using EXP (or V5) and the new aivision sensor.

3 Likes

Just for future users here who happen to come across this:

You can find all the modules installed using help('modules').

You can get the source code of a module by using an on-computer IDE:

import inspect
import mymodule

print(inspect.getsource(mymodule))

Just make sure the code creators allow code reproduction, which others might raise legal concerns.

How does that help the OP in any way ?

1 Like

That shows how to get the code for some modules that you might want to use.