Error installing python-snappy: snappy-c.h: No such file or directory

后端 未结 12 1383
感动是毒
感动是毒 2020-12-08 06:36

I am using amazon ec2 ubuntu 11.04 server

 sudo pip install python-snappy 

also I tried to downloaded package and entered \"sudo python set

12条回答
  •  無奈伤痛
    2020-12-08 06:45

    for Oracle Linux with Python 3.X:

    you need to enable optional_latest repository as a first step,

    1. use for enabling the following repo

      $ yum-config-manager --enable ol7_optional_latest

      "ol7_optional_latest" repo will be enabled for yum lookup.

    2. then install packages using,

      $ yum -y install gcc gcc-c++ snappy snappy-devel

    3. then with pip install the python-snappy package,

      $ pip3 install python-snappy

提交回复
热议问题