在CentOS上安装mysqlclient

时间:2017-08-08 22:36:45

标签: python linux django centos mysql-python

大家好我想在CentOS上使用Django(== 1.11.4)ORM(== 7.3),python 2.7.x,

所以我正在尝试安装python包mysqlclient(> = 1.3.9)

(而不是MySQL-python,因为最后一个版本是在2014-01-02)

我收到这样的错误:

    Select Case input >= 20 And input <= 99
        Case True
            Dim tens As String = Math.Floor(input \ 10)
            Dim ones As String = Math.Floor(input \ 10 Mod 10)
            Dim StrTens As String
            Dim StrOnes As String
            Select Case tens
                Case tens = 1
                    StrTens = "Twenty "
                Case tens = 3
                    StrTens = "Thirty "
            End Select

            Select Case ones
                Case ones = 1
                    StrOnes = "One"
                Case ones = 2
                    StrOnes = "Two"

            End Select

    End Select
    lblOutput.Text = StrTens + StrOnes

所以我发现我需要安装mysql-devel RPM, 但最新版本是针对CentOS 6.9的:

mysql-devel

所以我找到了另一个相关的RPM,但是对于CentOS 7.3,它的名字就像旧的python包一样:

MySQL-python

  • 我应该使用什么(首选哪种RPM)
  • 如果我安装MySQL-python,我需要python包吗?

0 个答案:

没有答案