Hi all, I'm working on developing a club at my school, and we want to let the students run python on the devices we provide (which get wiped every use). The solution I've came up with is the use USBs as a portable environment for students to code in, but some students want to take it home to use Mac as well, thus the cross-platform.
If I were to do that, would I install both installations onto the USB, or is there a universal one I don't know about? Thank you!
#π A portable python installation for both Windows and Mac
19 messages Β· Page 1 of 1 (latest)
@visual fog
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
I also saw something online called pyinstaller. Is this the fix to what I am looking for?
you want to keep interpreter and deps in the usb drive?
then there may not have a univeral solution for win and mac
usually we use a package manager like uv to manage dependancies, and on each platform, package manager will install deps for us
the binary format of "executables" is different between mac and windows, so no there is not a universal build
but, can they just install python on their home machines?
or is that a little out of expectations?
are you able to make python a program that does not get wiped on the school computers? and then they just store their projects on their USBs?
If you contact your network administrator at the school they might be able to help you with keeping python installed on machines
Probably whatever IDE youre using as well
I would assume they'll just use IDLE as it comes with python
Check out https://github.com/features/codespaces if browser-based options are available.
GitHub has school stuff built in: https://classroom.github.com/
You would have to create accounts
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.