我把之前Linux上默认的python2.6版本升级到2.7后,重新yum install MySQL-python后还是不能使用!怎么才能导入这个库呀。。跪求大神指点
Go to pypi to download the module package
Unzip
There is INSTALL to enter
python setup.py installThat’s it
Download the source code and reinstall ithttp://blog.csdn.net/yanyamin...
Download and install piphttps://bootstrap.pypa.io/get...
python2.7 get-pip.py
Install MySQL-python
pip2.7 install MySQL-python
The original poster can search for python virtualenv which is very useful. Various python versions, various packages
https://pypi.python.org/pypi/...Download the zip, unzip it, enter the folder, python setup.py install
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
The original poster can search for python virtualenv which is very useful. Various python versions, various packages
https://pypi.python.org/pypi/...
Download the zip, unzip it, enter the folder, python setup.py install