<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《要不我们还是用回 virtualenv/venv 和 pip 吧》的评论</title>
	<atom:link href="https://greyli.com/back-to-virtualenv-venv-and-pip/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com/back-to-virtualenv-venv-and-pip/</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Wed, 05 Nov 2025 16:05:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>
	<item>
		<title>作者：李辉</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-21546</link>
		<dc:creator><![CDATA[李辉]]></dc:creator>
		<pubDate>Tue, 02 Jan 2024 14:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-21546</guid>
		<description><![CDATA[哈哈，比喻很形象！]]></description>
		<content:encoded><![CDATA[<p>哈哈，比喻很形象！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：chen</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-21545</link>
		<dc:creator><![CDATA[chen]]></dc:creator>
		<pubDate>Tue, 02 Jan 2024 08:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-21545</guid>
		<description><![CDATA[我一直是这么理解的，表述不专业，只是帮助有一个形象了解：
想象你自己想做一份好吃的拌面，并且你富有创意，想尝试不同的做法，撒不同的调料试试。
现在两种拌法：（调料A +B +C）和（调料A +E +F）
如果你只有一个碗拌面，那你就会遇到一个问题：不同的调料拌在一起这样会串味
于是为了不串味，你买了多个碗，不同的碗拌不同的调理，相互之间不会串味影响口感。

虚拟环境就是这个碗，安装的包就是调料]]></description>
		<content:encoded><![CDATA[<p>我一直是这么理解的，表述不专业，只是帮助有一个形象了解：<br />
想象你自己想做一份好吃的拌面，并且你富有创意，想尝试不同的做法，撒不同的调料试试。<br />
现在两种拌法：（调料A +B +C）和（调料A +E +F）<br />
如果你只有一个碗拌面，那你就会遇到一个问题：不同的调料拌在一起这样会串味<br />
于是为了不串味，你买了多个碗，不同的碗拌不同的调理，相互之间不会串味影响口感。</p>
<p>虚拟环境就是这个碗，安装的包就是调料</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：李辉</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7622</link>
		<dc:creator><![CDATA[李辉]]></dc:creator>
		<pubDate>Sun, 04 Apr 2021 04:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7622</guid>
		<description><![CDATA[如果你是指创建虚拟环境使用的 Python 版本，那么可以通过系统环境变量 PIPENV_DEFAULT_PYTHON_VERSION 来指定（&lt;a href=&quot;https://pipenv.pypa.io/en/latest/advanced/#pipenv.environments.PIPENV_DEFAULT_PYTHON_VERSION&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot;&gt;docs&lt;/a&gt;）。如果是指项目依赖所需要的 Python 版本，可以参考&lt;a href=&quot;https://pipenv.pypa.io/en/latest/basics/#specifying-versions-of-python&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot;&gt;这里&lt;/a&gt;。也就是在 Pipfile 里添加下面的内容：

[requires]
python_version = &quot;3.6&quot;]]></description>
		<content:encoded><![CDATA[<p>如果你是指创建虚拟环境使用的 Python 版本，那么可以通过系统环境变量 PIPENV_DEFAULT_PYTHON_VERSION 来指定（<a href="https://pipenv.pypa.io/en/latest/advanced/#pipenv.environments.PIPENV_DEFAULT_PYTHON_VERSION" target="_blank" rel="noopener nofollow">docs</a>）。如果是指项目依赖所需要的 Python 版本，可以参考<a href="https://pipenv.pypa.io/en/latest/basics/#specifying-versions-of-python" target="_blank" rel="noopener nofollow">这里</a>。也就是在 Pipfile 里添加下面的内容：</p>
<p>[requires]<br />
python_version = &#8220;3.6&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Wh_Xcjm</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7616</link>
		<dc:creator><![CDATA[Wh_Xcjm]]></dc:creator>
		<pubDate>Tue, 30 Mar 2021 13:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7616</guid>
		<description><![CDATA[请问一下，pipenv是否可以通过修改配置文件的方式默认选择某一python版本呢，在网上没查到相关信息]]></description>
		<content:encoded><![CDATA[<p>请问一下，pipenv是否可以通过修改配置文件的方式默认选择某一python版本呢，在网上没查到相关信息</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：李辉</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7207</link>
		<dc:creator><![CDATA[李辉]]></dc:creator>
		<pubDate>Fri, 01 Nov 2019 04:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7207</guid>
		<description><![CDATA[可以在输出 requirements.txt 的时候，手动整理出开发依赖，然后放到一个新文件 requirements-dev.txt。]]></description>
		<content:encoded><![CDATA[<p>可以在输出 requirements.txt 的时候，手动整理出开发依赖，然后放到一个新文件 requirements-dev.txt。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：pyfreyr</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7206</link>
		<dc:creator><![CDATA[pyfreyr]]></dc:creator>
		<pubDate>Thu, 31 Oct 2019 06:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7206</guid>
		<description><![CDATA[virtualenv 是不是就无法设置 dev-dependencies，这个在开发中怎么管理呢]]></description>
		<content:encoded><![CDATA[<p>virtualenv 是不是就无法设置 dev-dependencies，这个在开发中怎么管理呢</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：李辉</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7188</link>
		<dc:creator><![CDATA[李辉]]></dc:creator>
		<pubDate>Fri, 18 Oct 2019 03:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7188</guid>
		<description><![CDATA[简单回答下，供参考。
&lt;ul&gt;
	&lt;li&gt;是什么：一个独立的 Python 解释器环境；&lt;/li&gt;
	&lt;li&gt;原理是什么：创建一个单独的 Python 解释器，链接到当前项目，安装依赖时安装到对应的解释器环境；&lt;/li&gt;
	&lt;li&gt;为什么推荐：避免依赖冲突，不用所有依赖都安装到一个全局的 Python 解释器环境；&lt;/li&gt;
	&lt;li&gt;和虚拟机的联系：都是用来隔离环境；&lt;/li&gt;
	&lt;li&gt;和虚拟机的区别：虚拟环境更方便和轻量，在 Python 解释器层面进行依赖隔离，而不是操作系统层面。&lt;/li&gt;
&lt;/ul&gt;]]></description>
		<content:encoded><![CDATA[<p>简单回答下，供参考。</p>
<ul>
<li>是什么：一个独立的 Python 解释器环境；</li>
<li>原理是什么：创建一个单独的 Python 解释器，链接到当前项目，安装依赖时安装到对应的解释器环境；</li>
<li>为什么推荐：避免依赖冲突，不用所有依赖都安装到一个全局的 Python 解释器环境；</li>
<li>和虚拟机的联系：都是用来隔离环境；</li>
<li>和虚拟机的区别：虚拟环境更方便和轻量，在 Python 解释器层面进行依赖隔离，而不是操作系统层面。</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>作者：gladuo</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7187</link>
		<dc:creator><![CDATA[gladuo]]></dc:creator>
		<pubDate>Thu, 17 Oct 2019 13:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7187</guid>
		<description><![CDATA[我也这么觉得...]]></description>
		<content:encoded><![CDATA[<p>我也这么觉得&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小风</title>
		<link>https://greyli.com/back-to-virtualenv-venv-and-pip/#comment-7178</link>
		<dc:creator><![CDATA[小风]]></dc:creator>
		<pubDate>Thu, 10 Oct 2019 12:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://greyli.com/?p=2551#comment-7178</guid>
		<description><![CDATA[作为一个不理解背后原理，就理解不了的人，想请问一下博主，这个python虚拟环境到底是什么？其工作原理是什么？为什么大家都推荐使用虚拟环境？和vmware workstation这样的虚拟机有什么区别与联系？]]></description>
		<content:encoded><![CDATA[<p>作为一个不理解背后原理，就理解不了的人，想请问一下博主，这个python虚拟环境到底是什么？其工作原理是什么？为什么大家都推荐使用虚拟环境？和vmware workstation这样的虚拟机有什么区别与联系？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
