问题
搭建jumpserver堡垒机时,出现Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-hpewak1f/python-gssapi/的错误。
解决
先注释掉requirements.txt 文件里的python-gssapi==0.6.4
sed -ir 's#python-gssapi==0.6.4#\#python-gssapi==0.6.4#g' requirements.txt
然后再执行一遍
pip install -r requirements.txt
sed -ir 's#\#python-gssapi==0.6.4#python-gssapi==0.6.4#g' requirements.txt
pip install -r requirements.txt