使用Ansible会提示UserWarning: Module import pkg_resources

具体情况如下: [code][root@jump1]# ansible Web -m shell -a "df -h" /usr/bin/ansible:26: UserWarning: Module __main__ was already imported from /usr/bin/ansible, but /usr/lib/python2.6/site-packages is being added to sys.path import pkg_resources[/code]
已邀请:

空心菜 - 牛逼你来

赞同来自: Ansible

想fix掉这个问题,请升级你的setuptools的版本吧,具体操作如下:
pip install -U setuptools

要回复问题请先登录注册