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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Pythonloc, invokes Python with local dir 'pypackages' on path

1 点作者 grassfedcode超过 6 年前

1 comment

grassfedcode超过 6 年前
pythonloc is a drop in replacement for python that automatically recognizes a __pypackages__ directory and prefers importing packages installed in this location over user or global site-packages.<p>If you are familiar with node, it is similar to node_modules.<p>This is a pure Python implementation of the proposal laid out in PEP 582. The CPython implementation is available at <a href="https:&#x2F;&#x2F;github.com&#x2F;kushaldas&#x2F;cpython&#x2F;tree&#x2F;pypackages" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kushaldas&#x2F;cpython&#x2F;tree&#x2F;pypackages</a>.