[英]Ansible DistributionNotFound jinja2
When I run the following ansible command当我运行以下 ansible 命令时
ansible webservers -m ping
It reports "DistributionNotFound jinja2<2.9".它报告“DistributionNotFound jinja2<2.9”。 I then updated jinja to 2.9.4 :
然后我将 jinja 更新到 2.9.4 :
pip install --upgrade jinja2
But ansible still reports the same error when running it.但是ansible在运行的时候还是报同样的错误。 Does anybody can help?
有人可以帮忙吗? Thanks!
谢谢!
I eventually figured out the solution, which is to update distribute rather than jinja2.我最终想出了解决方案,即更新分发而不是 jinja2。 Then reinstall ansible (my ansible was initially installed via pip):
然后重新安装ansible(我的ansible最初是通过pip安装的):
pip install -U distribute
pip uninstall ansible
pip install ansible
Thanks to @KonstantinSuvorov and @techraf for your help.感谢 @KonstantinSuvorov 和 @techraf 的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.