<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is this pip install persistent for app updates?]]></title><description><![CDATA[<p dir="auto">For a specific script (check via API the mail logs if there is a S3150 Micros$%t bounce) I needed this:</p>
<pre><code>pip3 install --user requests --break-system-packages
</code></pre>
<p dir="auto">Now the script works perfectly and via cron checks every hour the logs and informs via Pushover. However is this specific pip install persistent over app restart / update?</p>
]]></description><link>https://forum.cloudron.io/topic/13940/is-this-pip-install-persistent-for-app-updates</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 06:39:37 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13940.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jun 2025 10:39:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is this pip install persistent for app updates? on Mon, 16 Jun 2025 15:15:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a><br />
You can use <code>venv</code> or <code>uv</code> to create virtual environments.<br />
Here is a quick cheatsheet for <code>venv</code> =&gt; <a href="https://aaronlelevier.github.io/virtualenv-cheatsheet/" target="_blank" rel="noopener noreferrer nofollow ugc">https://aaronlelevier.github.io/virtualenv-cheatsheet/</a><br />
Many prefer <code>uv</code> these days, see =&gt; <a href="https://github.com/astral-sh/uv" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/astral-sh/uv</a></p>
]]></description><link>https://forum.cloudron.io/post/108756</link><guid isPermaLink="true">https://forum.cloudron.io/post/108756</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 16 Jun 2025 15:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to Is this pip install persistent for app updates? on Tue, 17 Jun 2025 07:41:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> said in <a href="/post/108756">Is this pip install persistent for app updates?</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a><br />
You can use <code>venv</code> or <code>uv</code> to create virtual environments.<br />
Here is a quick cheatsheet for <code>venv</code> =&gt; <a href="https://aaronlelevier.github.io/virtualenv-cheatsheet/" target="_blank" rel="noopener noreferrer nofollow ugc">https://aaronlelevier.github.io/virtualenv-cheatsheet/</a><br />
Many prefer <code>uv</code> these days, see =&gt; <a href="https://github.com/astral-sh/uv" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/astral-sh/uv</a></p>
</blockquote>
<p dir="auto">thanks again! I used venv and it works very well!</p>
]]></description><link>https://forum.cloudron.io/post/108789</link><guid isPermaLink="true">https://forum.cloudron.io/post/108789</guid><dc:creator><![CDATA[imc67]]></dc:creator><pubDate>Tue, 17 Jun 2025 07:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to Is this pip install persistent for app updates? on Mon, 16 Jun 2025 15:15:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a><br />
You can use <code>venv</code> or <code>uv</code> to create virtual environments.<br />
Here is a quick cheatsheet for <code>venv</code> =&gt; <a href="https://aaronlelevier.github.io/virtualenv-cheatsheet/" target="_blank" rel="noopener noreferrer nofollow ugc">https://aaronlelevier.github.io/virtualenv-cheatsheet/</a><br />
Many prefer <code>uv</code> these days, see =&gt; <a href="https://github.com/astral-sh/uv" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/astral-sh/uv</a></p>
]]></description><link>https://forum.cloudron.io/post/108756</link><guid isPermaLink="true">https://forum.cloudron.io/post/108756</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 16 Jun 2025 15:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to Is this pip install persistent for app updates? on Sun, 15 Jun 2025 17:22:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> said in <a href="/post/108705">Is this pip install persistent for app updates?</a>:</p>
<blockquote>
<p dir="auto">What you want to do is create a virtual environment with pip in <code>/app/data/</code> and use that environment.<br />
That will be included in the backup.</p>
</blockquote>
<p dir="auto">Thanks for your feedback! Can you advise on what command to use to create this?</p>
]]></description><link>https://forum.cloudron.io/post/108714</link><guid isPermaLink="true">https://forum.cloudron.io/post/108714</guid><dc:creator><![CDATA[imc67]]></dc:creator><pubDate>Sun, 15 Jun 2025 17:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to Is this pip install persistent for app updates? on Sun, 15 Jun 2025 16:05:41 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a><br />
Since the <code>--user</code> flag installed packages as a user, when you run this in the LAMP as root, it will install packages into <code>/root/.local/lib/python3.12/site-packages/</code><br />
And since <code>/root/.local/</code> is a symbolic link to <code>/root/.local -&gt; /run/root.local</code> <code>/run</code> is not included in the backup.</p>
<p dir="auto">What you want to do is create a virtual environment with pip in <code>/app/data/</code> and use that environment.<br />
That will be included in the backup.</p>
]]></description><link>https://forum.cloudron.io/post/108705</link><guid isPermaLink="true">https://forum.cloudron.io/post/108705</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Sun, 15 Jun 2025 16:05:41 GMT</pubDate></item></channel></rss>