python安装salt模块
大家 在 import salt 时,可能会报错,no module named salt
这时候可以pip install salt
但是可能会报错 SNIMissingWarning: An https request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platfORM.
解决办法: pip install pyopenssl ndg-Httpsclient pyasn1
截至接续pip install salt ,可能还会报tornado requires an up-to-date SSL module
解决办法:pip install 'Tornado>=4.0.0,<5.0.0'
接下来可能会报找不到GCc
解决办法 yum -y install gcc
接下来还可能会报 command 'gcc' failed with exit status 1 while installing eventlet
解决办法 yum -y install python-devel
如果再不行的话,老哥,你肯定用的Python2,7或者python3.5 了,请安装对应版本的python-devel吧,比如 pip install python3.5-devel
相关文章