升级python到2.7后

$ ansible

报错

Traceback (most recent call last):
  File "/usr/bin/ansible", line 36, in <module>
    from ansible.runner import Runner
ImportError: No module named ansible.runner

和yum python升级2.7后不能使用的解决方法一样

vim /usr/bin/ansible

将第一行#!/usr/bin/python 改为 #!/usr/bin/python2.6

问题解决

相关文章:

  • 2021-09-14
  • 2022-03-10
  • 2021-06-27
  • 2021-07-31
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案