TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PEP 486 – Make the Python Launcher aware of virtual environments (2015)

18 pointsby okl3 months ago

3 comments

zahlman3 months ago
Huh. Come to think of it, when I was on Windows (through 2021) I got used to using `python` rather than `py` while using venvs, even though it was apparently no longer necessary after I upgraded from Python 3.4. This announcement totally missed me. But also it was easier to internalize &quot;always use venvs, and always run `python`, and that way you won&#x27;t have to change the instructions for Linux&#x2F;Mac&quot;. And that worked out beautifully.<p>But the launcher <i>does</i> have value. Mainly because of how Windows handles the PATH and how it wants C:\Program Files to be organized; but there are enough fringe benefits that a core dev wants to bring it to Linux&#x2F;Mac too (<a href="https:&#x2F;&#x2F;github.com&#x2F;brettcannon&#x2F;python-launcher">https:&#x2F;&#x2F;github.com&#x2F;brettcannon&#x2F;python-launcher</a>).
FloatArtifact3 months ago
It seems to me py launcher could have done the same thing as uv such as downloading and setting up python and managing virtual environments.
评论 #43227273 未加载
评论 #43153582 未加载
westurner3 months ago
pip used to support virtualenvs.<p>pip 0.2 (2008) <a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;pip&#x2F;0.2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;pip&#x2F;0.2&#x2F;</a> :<p>&gt; <i>pip is complementary with virtualenv, and it is encouraged that you use virtualenv to isolate your installation.</i><p><a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;pip&#x2F;0.2&#x2F;#using-pip-with-virtualenv" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;pip&#x2F;0.2&#x2F;#using-pip-with-virtualenv</a> :<p><pre><code> pip install -E venvpath&#x2F; pkg1 pkg2 </code></pre> When was the -E &lt;virtualenv&gt; flag removed from pip and why?<p><pre><code> pip install --help | grep &quot;\-E&quot;</code></pre>
评论 #43227547 未加载
评论 #43227655 未加载