Is there a way to run a Python file on a Chromebook without Linux?

0
9
Asked By TechyTurtle42 On

I'm trying to run a Python (.py) file on my school-issued Chromebook, but I can't access Linux at all. I converted the .py file to an .exe, but as expected, .exe files don't work on ChromeOS. I need the program to run offline as a standalone file, but I'm struggling to find a way to make this work. Any suggestions would be greatly appreciated!

2 Answers

Answered By CodeWhisperer91 On

Unfortunately, if your Chromebook doesn't allow you to install Linux, you can't run Python files directly. A good workaround is to use online platforms like repl.it, where you can execute Python code remotely. There's also a more local option with online editors that use 'pyodide', which runs Python straight in your browser and can function offline. Check out sites like alexprengere.github.io/python_playground for that.

Answered By CuriousCoder88 On

Is Crostini available on your device? Sometimes it's just disabled by the school administration. If not, you're pretty limited. But if you need to run it offline, that really complicates things.

TechyTurtle42 -

Yeah, it's completely locked down by school policies.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.