---
title: "Discussion on \"How to start a venv on startup and run a program on Raspberry Pi?\" | Hashnode"
description: "Discussion on \"How to start a venv on startup and run a program on Raspberry Pi?\". Use systemd. You don’t “activate” a venv at boot; you simply run the venv’s Python on Raspberry Pi directly.\n1) Create your venv (once)\nmkdir -p /home/pi/myapp\ncd /home/pi/myapp\n\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -U pip\npip ..."
url: "https://hashnode.com/posts/how-to-start-a-venv-on-startup-and-run-a-program-on-raspberry-pi/6943cb8ff9559a563d3f1930"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to start a venv on startup and run a program on Raspberry Pi?](https://ampheoelectronic.hashnode.dev/how-to-start-a-venv-on-startup-and-run-a-program-on-raspberry-pi?utm_source=hashnode&utm_medium=feed)

Use systemd. You don’t “activate” a venv at boot; you simply run the venv’s Python on Raspberry Pi directly. 1) Create your venv (once) mkdir -p /home/pi/myapp cd /home/pi/myapp python3 -m venv .venv source .venv/bin/activate pip install -U pip pip ...

Dec 18, 2025 · 1 min read · ampheoelectronic.hashnode.dev  
Read the article

-   [#venv](https://hashnode.com/tag/venv)
-   [#python-venv](https://hashnode.com/tag/python-venv)
-   [#raspberry-pi](https://hashnode.com/tag/raspberry-pi)
-   [#python](https://hashnode.com/tag/python)

## Written by

[ampheo](https://hashnode.com/@ampheo)

@ampheo

  
[View profile](https://hashnode.com/@ampheo)

Electronic Components Distributor

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
