error: command 'gcc' failed with exit status 1

Setup script exited with error: command 'gcc' failed with exit status 1

因爲沒有正確安裝Python開發環境致使。
Debin/Ubuntu
    Python2
    sudo apt-get install python-dev

    Python3
    sudo apt-get install python3-dev
    可能須要libevent庫
    sudo apt-get install libevent-dev
    
Centos/Fedora

    sudo yum install python-devel
    sudo yum install libevent-devel
    easy_install gevent
    或者
    pip install gevent
相關文章
相關標籤/搜索