自动安装pip软件包的OS依赖项 [英] Automatically install pip packages' OS dependencies

查看:97
本文介绍了自动安装pip软件包的OS依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Debootstrap 的Debian上安装许多 pip 软件包,这是可以理解的,并且缺乏通常在平台上期望的大量软件包.常规安装.自然, pip 安装会失败,因为操作系统没有它们依赖的库.

I am installing lots of pip packages on a debootstrap'd Debian which is understandably quite bare bones and lacks a ton of packages that you'd usually expect on a regular installation. Naturally, pip installations are failing because the OS doesn't have the libraries they depend on.

有没有一种方法可以让 pip 解析 apt 依赖关系,而不是单独挖掘我需要安装的依赖关系?

Instead of individually digging for dependencies I need to install, is there a way to let pip resolve apt dependencies?

推荐答案

否. pip 是一种便携式工具,旨在在许多操作系统上运行.但是在每个操作系统上, pip 仅适用于Python程序包,并且不涉及系统库.如果您使用 apt 或任何其他特定于发行版的软件包管理器安装Python软件包,它将处理所有依赖项.当您将 pip 添加到工具箱中时-您就是一个人.

No. pip is a portable tool designed to be run on many operating systems. But on every operating system pip works with just Python packages and doesn't touch system libraries. If you install Python packages with apt or any other distribution-specific package manager it handles all dependencies. When you add pip to the toolbox — you are on your own.

这篇关于自动安装pip软件包的OS依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆