no acceptable C compiler found in $PATH when installing python

前端 未结 11 857
野性不改
野性不改 2020-11-28 18:30

I\'m trying to install new python environment on my shared hosting. I follow the steps written in this post:

mkdir ~/src
wget http://www.python.org/ftp/pytho         


        
11条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 19:26

    The gcc compiler is not in your $PATH. It means either you dont have gcc installed or it's not in your $PATH variable.

    To install gcc use this: (run as root)

    • Redhat base:

      yum groupinstall "Development Tools"
      
    • Debian base:

      apt-get install build-essential
      

提交回复
热议问题