当使用Pyenv管理Python版本时,如何安装依赖项?
我在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论