User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gentoo:pip [2024/06/19 12:47] willygentoo:pip [2025/03/13 13:26] (current) – [PIP] willy
Line 1: Line 1:
-====== PIP ======+====== G) PIP ======
  
 [[https://pypi.org/project/pip/PyPi]] or **pip** is the **Packager Installer for Python** and it's a great tool to quickly install and manage python tools. [[https://pypi.org/project/pip/PyPi]] or **pip** is the **Packager Installer for Python** and it's a great tool to quickly install and manage python tools.
Line 50: Line 50:
 <code bash> <code bash>
 export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
 +</code>
 +
 +===== OpenRC and venv =====
 +
 +You don't really need to ativate the venv. You can run the full path to the executable under the **bin** folder of the venv while being in the root folder of the venv, as your CWD.
 +
 +So:
 +<code>
 +#!/sbin/openrc-run
 +# Copyright 2025 Gentoo Authors
 +# Distributed under the terms of the GNU General Public License v2
 +
 +name="start a venv stuff"
 +description="start a venv stuff"
 +pidfile="/run/myservice.pid"
 +command_background=true
 +command="/path/to/venv/bin/python" # or any other executable in your venv
 +command_args="-m my_python_app_to_run"
 +command_user="conduwuit:conduwuit"
 +
 +start_pre() {
 +        cd /path/to/venv
 +}
 </code> </code>

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information