Automatically install pip packages' OS dependencies

喜你入骨 提交于 2021-01-29 08:04:31

问题


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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/53979660/automatically-install-pip-packages-os-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!