backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory

前端 未结 4 2357
别跟我提以往
别跟我提以往 2021-02-18 20:44

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

$ apt-get install python-pip python-dev
$ pip install -r requirements.txt
[...]
backports/lzma/_l         


        
相关标签:
4条回答
  • 2021-02-18 20:54
    $ apt-get install -y liblzma-dev
    
    0 讨论(0)
  • 2021-02-18 20:57

    And finally on RedHat (I tested it on RHEL 7.4)

    yum install -y xz-devel

    0 讨论(0)
  • 2021-02-18 21:09

    For OSX with Homebrew.

    brew install xz
    

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

    0 讨论(0)
  • 2021-02-18 21:10

    On Centos the package is

    yum install -y xz-devel
    
    0 讨论(0)
提交回复
热议问题