• Centos 6.5安装MySQL-Python遇到的问题--解决办法一


    系统:CentOS release 6.5 (Final)

    MySQL版本:mysql  Ver 14.14 Distrib 5.7.19, for Linux (x86_64) using  EditLine wrapper

    python版本:Python 3.5.3

    [root@sishen yum.repos.d]# yum -y install rpm-build gcc-c++ mysql-devel python-devel
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
      * base: mirrors.aliyun.com
      * extras: mirrors.aliyun.com
      * updates: mirrors.aliyun.com
    Setting up Install Process
    Package rpm-build-4.8.0-55.el6.x86_64 already installed and latest version
    Package gcc-c++-4.4.7-18.el6.x86_64 already installed and latest version
    Package python-devel-2.6.6-66.el6_8.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-devel.x86_64 0:5.1.73-8.el6_8 will be installed
    --> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-devel-5.1.73-8.el6_8.x86_64
    --> Running transaction check
    ---> Package mysql.x86_64 0:5.1.73-8.el6_8 will be installed
    --> Processing Dependency: mysql-libs = 5.1.73-8.el6_8 for package: mysql-5.1.73-8.el6_8.x86_64
    --> Running transaction check
    ---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be installed
    --> Processing Conflict: mysql-devel-5.1.73-8.el6_8.x86_64 conflicts MySQL-devel
    --> Finished Dependency Resolution
    Error: mysql-devel conflicts with mysql-community-devel-5.7.20-1.el6.x86_64
      You could try using --skip-broken to work around the problem
      You could try running: rpm -Va --nofiles –nodigest

    折腾了好半天,还好解决了(本人初学者,见笑了!)

    [root@sishen ~]# git clone https://github.com/PyMySQL/mysqlclient-python.git

    [root@sishen ~]# cd mysqlclient-python/
    [root@sishen mysqlclient-python]# python3.5.3 setup.py install

    成功结果如下:

  • 相关阅读:
    人民币大小写转换
    清除vs中的最近打开的项目列表
    OWC绘图控件研究
    Fat32的磁盘格式转成Ntfs磁盘格式
    Host "localhost " is not allowed to connect to mysql server解决方法
    OWC中组合图的开发(柱状图+折线图)
    mysql 1251错误解决方法
    使用OWC做统计图图标样式
    完全卸载MYSQL
    nginx 伪静态
  • 原文地址:https://www.cnblogs.com/zd520pyx1314/p/7863724.html
Copyright © 2020-2023  润新知