当使用Pyenv管理Python版本时,如何安装依赖项?

发布于 2025-01-31 11:36:17 字数 286 浏览 3 评论 0原文

我在Ubuntu 22.04。在默认安装上,没有Python版本。

我已经安装了Pyenv,以便使用特定的基于Python的程序。

我想安装的某些程序具有通常使用PIP安装的依赖项。但是,由于板载没有系统python,因此没有PIP。

现在,我可以去安装系统python,在这种情况下,我可以访问PIP ...并安装Python3,以便使用安装Python3 Deps。但这对我来说似乎是过分的。据我所知,我可能正在创造并发症,使我更加陷入困境。

那么,使用托管Python版本时,如何进行依赖管理呢?

I'm on Ubuntu 22.04. On a default install there is no python version.

I've installed pyenv in order to use specific python-based programs.

Some of the programs I want to install have dependencies that are usually installed using pip. However, because there is no system python on-board, there is no pip.

Now, I could go and install system python, in which case I'd have access to pip... and also install python3 in order to use install python3 deps. But this seems like overkill to me. And for all I know, I might be creating complications that hit me further down the road.

So how do I do dependency management when using managed python versions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文