Maison  >  Questions et réponses  >  le corps du texte

linux默认python版本升级成2.7后怎么安装mysql包

我把之前Linux上默认的python2.6版本升级到2.7后,重新yum install MySQL-python后
还是不能使用!怎么才能导入这个库呀。。跪求大神指点

巴扎黑巴扎黑2741 Il y a quelques jours560

répondre à tous(5)je répondrai

  • ringa_lee

    ringa_lee2017-04-18 10:29:37

    • Allez sur pypi pour télécharger le package du module

    • Décompresser

    • Il y a un INSTALL à saisir

    • python setup.py install
      C'est tout

    répondre
    0
  • 巴扎黑

    巴扎黑2017-04-18 10:29:37

    Téléchargez le code source et réinstallez-le
    http://blog.csdn.net/yanyamin...

    répondre
    0
  • 巴扎黑

    巴扎黑2017-04-18 10:29:37

    Téléchargez et installez pip
    https://bootstrap.pypa.io/get...

    python2.7 get-pip.py

    Installer MySQL-python

    pip2.7 installer MySQL-python

    répondre
    0
  • PHPz

    PHPz2017-04-18 10:29:37

    L'affiche originale peut rechercher python virtualenv, ce qui est très utile. Différentes versions de Python, différents packages

    répondre
    0
  • 天蓬老师

    天蓬老师2017-04-18 10:29:37

    https://pypi.python.org/pypi/...
    Téléchargez le zip, décompressez-le, entrez dans le dossier, python setup.py install

    répondre
    0
  • Annulerrépondre