补丁/ lzma / _lzmamodule。c:115:18:致命错误:lzma。h:没有这样的文件或目录

时间:2022-07-21 05:29:26

I'm trying to install docker-registry. I got stuck after this:

我正在安装docker-registry。我被困住了:

$ apt-get install python-pip python-dev
$ pip install -r requirements.txt
[...]
backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory

The docker-registry I downloaded is v0.6.7

我下载的docker-registry是v0.6.7

3 个解决方案

#1


26  

$ apt-get install -y liblzma-dev

#2


6  

On Centos the package is

在Centos,这个包裹是

yum install -y xz-devel

#3


3  

For OSX with Homebrew.

与家酿OSX。

brew install xz

The formula is xz which because lzma formula is deprecated, since it became a part of xz.

这个公式是xz,因为lzma公式被废弃了,因为它是xz的一部分。

#1


26  

$ apt-get install -y liblzma-dev

#2


6  

On Centos the package is

在Centos,这个包裹是

yum install -y xz-devel

#3


3  

For OSX with Homebrew.

与家酿OSX。

brew install xz

The formula is xz which because lzma formula is deprecated, since it became a part of xz.

这个公式是xz,因为lzma公式被废弃了,因为它是xz的一部分。