How to handle failure of installing python-related libraries in Centos

Source: Internet
Author: User

How to handle failure of installing python-related libraries in Centos

For example, how to solve rasterstats installation failure?

  • Solution 1: Recommendation
    (1) The prompt is missing.Python. h file, run

    yum install python-devel

    (2) The prompt is missing.Run the cpl_conv.h File

    yum install gdal-devel

    (3) PromptGcc: error trying to exec 'cc1plus ': execvp: No such file or directory, run

    yum install gcc-c++
    • Solution 2: Install the virtual environment conda (1) wgethttps: // repo. continuum. io/miniconda/Miniconda2-latest-Linux-x86_64.sh (2) bash Miniconda2-latest-Linux-x86_64.sh (3) Exit re-login (4) conda install rasterio (5) pip install rasterstats

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.