linux默认python版本升级成2.7后怎么安装mysql包
巴扎黑
巴扎黑 2017-04-18 10:27:37
0
5
556

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

巴扎黑
巴扎黑

reply all(5)
左手右手慢动作
  • Go to pypi to download the module package

  • Unzip

  • There is INSTALL to enter

  • python setup.py install
    That’s it

巴扎黑

Download the source code and reinstall it
http://blog.csdn.net/yanyamin...

巴扎黑

Download and install pip
https://bootstrap.pypa.io/get...

python2.7 get-pip.py

Install MySQL-python

pip2.7 install MySQL-python

PHPzhong

The original poster can search for python virtualenv which is very useful. Various python versions, various packages

Peter_Zhu

https://pypi.python.org/pypi/...
Download the zip, unzip it, enter the folder, python setup.py install

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!