<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://www.vanderschaft.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Python%3A_venv_start</id>
	<title>Python: venv start - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://www.vanderschaft.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Python%3A_venv_start"/>
	<link rel="alternate" type="text/html" href="https://www.vanderschaft.net/mediawiki/index.php?title=Python:_venv_start&amp;action=history"/>
	<updated>2026-09-12T05:11:09Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://www.vanderschaft.net/mediawiki/index.php?title=Python:_venv_start&amp;diff=23&amp;oldid=prev</id>
		<title>Dschaft op 24 feb 2026 om 19:34</title>
		<link rel="alternate" type="text/html" href="https://www.vanderschaft.net/mediawiki/index.php?title=Python:_venv_start&amp;diff=23&amp;oldid=prev"/>
		<updated>2026-02-24T19:34:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nl&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Oudere versie&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versie van 24 feb 2026 19:34&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Regel 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Regel 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Prepends .venv/bin to PATH, so python, pip, and any console scripts installed in the venv are found first.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Prepends .venv/bin to PATH, so python, pip, and any console scripts installed in the venv are found first.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets a few Python-related vars (e.g., VIRTUAL_ENV, PYTHONHOME unset).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets a few Python-related vars (e.g., VIRTUAL_ENV, PYTHONHOME unset).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;When running script change the shebang to the venv path as well:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; #!/Users/username/.python&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Deactivating, uninstalling, removing ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Deactivating, uninstalling, removing ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dschaft</name></author>
	</entry>
	<entry>
		<id>https://www.vanderschaft.net/mediawiki/index.php?title=Python:_venv_start&amp;diff=20&amp;oldid=prev</id>
		<title>Dschaft: Nieuwe pagina aangemaakt met &#039;=== Create &amp; activate ===  In your project root   python3 -m venv .venv  Activate in zsh/bash   source .venv/bin/activate  Verify   python -V  Prepends .venv/bin to PATH, so python, pip, and any console scripts installed in the venv are found first. Sets a few Python-related vars (e.g., VIRTUAL_ENV, PYTHONHOME unset).  === Deactivating, uninstalling, removing === Leave the venv   deactivate  Uninstall a package (inside the venv)   source .venv/bin/activate  py…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.vanderschaft.net/mediawiki/index.php?title=Python:_venv_start&amp;diff=20&amp;oldid=prev"/>
		<updated>2026-02-17T19:44:18Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;=== Create &amp;amp; activate ===  In your project root   python3 -m venv .venv  Activate in zsh/bash   source .venv/bin/activate  Verify   python -V  Prepends .venv/bin to PATH, so python, pip, and any console scripts installed in the venv are found first. Sets a few Python-related vars (e.g., VIRTUAL_ENV, PYTHONHOME unset).  === Deactivating, uninstalling, removing === Leave the venv   deactivate  Uninstall a package (inside the venv)   source .venv/bin/activate  py…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Create &amp;amp; activate ===&lt;br /&gt;
&lt;br /&gt;
In your project root&lt;br /&gt;
&lt;br /&gt;
 python3 -m venv .venv&lt;br /&gt;
&lt;br /&gt;
Activate in zsh/bash&lt;br /&gt;
&lt;br /&gt;
 source .venv/bin/activate&lt;br /&gt;
&lt;br /&gt;
Verify&lt;br /&gt;
&lt;br /&gt;
 python -V&lt;br /&gt;
&lt;br /&gt;
Prepends .venv/bin to PATH, so python, pip, and any console scripts installed in the venv are found first.&lt;br /&gt;
Sets a few Python-related vars (e.g., VIRTUAL_ENV, PYTHONHOME unset).&lt;br /&gt;
&lt;br /&gt;
=== Deactivating, uninstalling, removing ===&lt;br /&gt;
Leave the venv&lt;br /&gt;
&lt;br /&gt;
 deactivate&lt;br /&gt;
&lt;br /&gt;
Uninstall a package (inside the venv)&lt;br /&gt;
&lt;br /&gt;
 source .venv/bin/activate&lt;br /&gt;
 python -m pip uninstall &amp;lt;pkg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove ALL packages but keep the venv structure&lt;br /&gt;
&lt;br /&gt;
 python -m pip freeze | xargs -r python -m pip uninstall -y&lt;br /&gt;
&lt;br /&gt;
Nuke the venv directory&lt;br /&gt;
&lt;br /&gt;
 deactivate 2&amp;gt;/dev/null || true&lt;br /&gt;
 rm -rf .venv/&lt;/div&gt;</summary>
		<author><name>Dschaft</name></author>
	</entry>
</feed>