MySql教程

saltstack 安装模块装不上mysql-python: Not Installed

本文主要是介绍saltstack 安装模块装不上mysql-python: Not Installed,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
  • 环境
    centos7
    python 3.6
    Salt: 3002.5
  • 问题
    salt-master 执行返回到mysql存储,安装mysql-python 发现yum install MYSQL-python 已经安装
    但是执行会报错,如下

    [ERROR ] Message timed out
    Salt request timed out. The master is not responding. You may need to run your command with --async in order to bypass the congested event bus. With --async, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use salt-run jobs.lookup_jid to look up the results of the job in the job cache later.

  • 问题查找

saltstack 安装模块装不上mysql-python: Not Installed

saltstack 安装模块装不上mysql-python: Not Installed

saltstack 安装模块装不上mysql-python: Not Installed

    • 问题解决
      百度谷歌一大堆,好久都没发现。最后无意中发现一个,https://www.cnblogs.com/venicid/p/11958498.html
      废话不多说直接搞,两步搞定
      pip3 install --target=/usr/lib/python3.6/site-packages/ mysqlclient
      systemctl  restart salt-master
这篇关于saltstack 安装模块装不上mysql-python: Not Installed的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!