TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python dependency management is a dumpster fire

3 点作者 BerislavLopac6 个月前

2 条评论

DemocracyFTW26 个月前
The entire field of Python import statements, their rules and programmatic application, Python dependency management and Python packaging is a horror show that has been going wrong for decades. It's a big part of the reason I left Python for NodeJS ten years ago.
评论 #42254440 未加载
gjvc6 个月前
&quot;&quot;&quot;However, there is no lock file. You could manually generate a kind of lock file using something like pip freeze &gt;&gt; environment.lock, as this will look at all the packages currently installed in your environment and write them to a file. However, such a manual process is error prone and most people prefer to use a dedicated tool to manage lock files.<p>&quot;&quot;&quot;<p>&quot;error prone&quot;, ok pal, ok -- undermine your entire article with this.<p>Keep the output of &quot;pip freeze&quot; in version control and you&#x27;re good to go. When you want to upgrade you need to diff the old to the new. Do the work and stop complaining.
评论 #42254444 未加载