Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running python3 from a usb drive (portably)

I want to run python3 on our school computers (under Windows) during our programming classes. I installed python 3.1 onto a USB flash drive at home (using Windows), and brought it to school. However, it gives me the following error:

The program can't start because python31.dll is missing from your computer. Try reinstalling the program to fix this problem.

How do I get the file, where do I put it (can I put it onto the USB itself?) and/or is there a better alternative for python3 portability? The reason why I don't simply use an online editor is because I also want to have pygame along with python on the USB.

like image 234
Sergey Avatar asked Oct 18 '25 10:10

Sergey


1 Answers

If you installed python on your home PC "for all users" the .dll is in the c:\windows\system32\ (or equivalent). Copy it to your USB drive folder or reinstall python "just for me" on the USB drive so it contains everything in one place.

like image 111
AnyOneElse Avatar answered Oct 20 '25 01:10

AnyOneElse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!