Join the community today
Become a Member

How install MySQL-python ?

Discussion in 'Other Web Apps usage' started by hardousse, Jan 16, 2018.

  1. hardousse

    hardousse Active Member

    123
    30
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +45
    Local Time:
    11:24 PM
    1.11.*
    10.1*
    Hi i want install seafile in centminmod server but I can’t install this
    dependencies python-imaging python-ldap mysql-python python-memcache python-urllib3 i was try the standard method with yum but nothing found.any help.thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,664
    7,453
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,458
    Local Time:
    6:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    CentOS 6 or 7 ? What instructions/guide you following ?

    See
    seems to have different yum package requirements on 2 guides

    CentOS 7 has some
    Code (Text):
    yum list python python-setuptools python-imaging python-ldap python-memcached MySQL-python
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror2.evolution-host.com
     * epel: epel.mirror.constant.com
     * extras: mirror.gpmidi.net
     * updates: mirror.gpmidi.net
    214 packages excluded due to repository priority protections
    Installed Packages
    python.x86_64                                                                                                                   2.7.5-58.el7                                                                                                         @base
    python-setuptools.noarch                                                                                                        0.9.8-7.el7                                                                                                          @base
    Available Packages
    python-ldap.x86_64                                                                                                              2.4.15-2.el7                                                                                                         base
    python-memcached.noarch                                                                                                         1.48-4.el7                                                                                                           base
    


    of course no need to install MariaDB MySQL server so can leave off mariadb-server yum install

    edit: quick google search (good skill to have ;) ) revels python-imaging package refers to older CentOS 6 package for python imaging library but newer versions use a forked version called python-pillow which CentOS 7 and several 3rd party CentOS 6 yum repos provide instead of python-imaging GitHub - python-pillow/Pillow: The friendly PIL fork (Python Imaging Library)

    some of packages differ in name and some are only available in 3rd party yum repositories which you can search for at CentOS Repositories - pkgs.org but you can potentially mess up server and all yum repos' installed packages if you do not know what you're doing yum repo install/config wise. Centmin Mod for this reason uses yum priorities plugin to manage potential conflicts where more than one 3rd party yum repositories offer the same package as CentOS default yum repo Third Party YUM Repos with Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
     
    Last edited: Jan 16, 2018
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    33,664
    7,453
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,458
    Local Time:
    6:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah I see for MySQL-python it's excluded from main yum config file to protect MariaDB MySQL yum packages so that users don't accidentally install MySQL Oracle based server over MariaDB MySQL. So you need to use the yum flag --disableexcludes=main to disable excludes for main yum repo
    Code (Text):
     yum list MySQL-python --disableexcludes=main                           
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror2.evolution-host.com
     * epel: epel.mirror.constant.com
     * extras: mirror.gpmidi.net
     * updates: mirror.gpmidi.net
    216 packages excluded due to repository priority protections
    Available Packages
    MySQL-python.x86_64                                                                                                            1.2.5-1.el7                                                                                                            base
    
     
    • Like Like x 1
  4. hardousse

    hardousse Active Member

    123
    30
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +45
    Local Time:
    11:24 PM
    1.11.*
    10.1*
    I use centos 7,thank you for explaining.
     
..