# How to Cheaply run python on cloud?

**URL:** <https://onehack.st/t/how-to-cheaply-run-python-on-cloud/295130>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [November 5, 2024, 3:29pm UTC](https://onehack.st/t/how-to-cheaply-run-python-on-cloud/295130 "2024-11-05T15:29:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muchael\_Mills](https://onehack.st/user_avatar/onehack.st/muchael_mills/32/142058_2.png) [@Muchael\_Mills](https://onehack.st/u/Muchael_Mills)\
**Post date:** [November 5, 2024, 3:29pm UTC](https://onehack.st/t/how-to-cheaply-run-python-on-cloud/295130/1 "2024-11-05T15:29:40Z")

</div>

Hi Friends,  
I need to run a Python Script on cloud 24x7, for free  
I used Replit, but the server disconnects as soon as I close my browser tabs.

Please suggest the free or the cheapest solution.

---

<div class="post-metadata">

**Author:** ![Abd\_Shk](https://onehack.st/user_avatar/onehack.st/abd_shk/32/25814_2.png) [@Abd\_Shk](https://onehack.st/u/Abd_Shk)\
**Post date:** [November 5, 2024, 5:39pm UTC](https://onehack.st/t/how-to-cheaply-run-python-on-cloud/295130/2 "2024-11-05T17:39:37Z")

</div>

Oracle cloud infrastructure

---

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [November 5, 2024, 7:38pm UTC](https://onehack.st/t/how-to-cheaply-run-python-on-cloud/295130/3 "2024-11-05T19:38:50Z")

</div>

**--------- Option 2**

Here are some ways to run Python on the cloud:

- **Google Cloud**

Use Cloud Shell to run your app, install dependencies, and run the Gunicorn HTTP server. You can also use Cloud Shell Editor for IDE support.

- **Container Registry**

Use the Container Registry to move your code from your PC to a VM Instance. You can then deploy the image to GCE and create a free virtual machine.

- **Virtual environment**

Set up a virtual environment for Python and install packages there. You can create a virtual environment by typing `$ virtualenv -p python3 venv`.

- **Secure copy**

Use the secure copy command to upload existing code from your machine.

Python is a popular language for cloud computing because it’s simple, readable, and has a strong ecosystem. Google Cloud has tools to help Python developers build cloud-native applications.

-:: What seems useful to you, Simply search the keywords on Google and follow the top end solutions to set-up ::-

**--------- Option 2**

This may also help only if it’s script base: `https://www.youtube.com/watch?v=JuBmG39zLY8&t=70`

**--------- Option 3**

Lastly, for the cheapest ones, continue following this thread: `https://www.reddit.com/r/learnpython/comments/1d6zh1p/cheapest_way_to_run_python_code_247_on_cloud/?rdt=34857`

**Happy learning!**
