Question about python libraries

Hello!

I’m an engineering student and I have a Robotics exam in two weeks. We’re allowed to bring Python code on a USB stick and use it on a computer with Spyder during the exam. The computer won’t have internet access, and although NumPy and Matplotlib will be available, our professor can’t guarantee any other libraries. I used SymPy a lot this semester, but I’m not sure if it will be available. Is it possible to include a Python library like SymPy on a USB stick and use it during the exam?

Spontaneous idea:

Not sure if that works, but Google pretends there’s Python Portable available (3rd party stuff though), where you could be able to configure an interpreter and install a few libraries in there.

I believe Python itself is not exactly unhappy when running without a proper installation, all those freezers and a few programs actually bundle a whole Python installation/library with them, so IF you can find a portable installation, I suppose it would work just fine.

Possibly. You would need to know the OS, CPU type, and Python version. You could then have SymPy installed next to your own code by telling pip the appropriate details of the machine.

Just to note, I believe this post is basically a duplicate of Library on USB stick (or possibly the other way around, but the other one wasn’t hung up in automatic moderation), where an answer has been accepted.

1 Like

Duplicate of Library on USB stick .