已經(jīng)用yum安裝了MySQL-python:$ yum list MySQL-pythonInstalled PackagesMySQL-python.x86_64 1.2.3-0.3.c1.1.el6 @base但在python中引入MySQLdb時(shí)報(bào)錯(cuò):$ pythonPython 2.7.6 (default, Nov 19 2014, 11:10:02) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import MySQLdbTraceback (most recent call last): File "<stdin>", line 1, in <module>ImportError: No module named MySQLdb查詢到在系統(tǒng)中是有下面這個(gè)目錄的:/usr/lib64/python2.6/site-packages/MySQLdb希望高手幫忙看看。
報(bào)錯(cuò):ImportError: No module named MySQLdb
慕碼人8056858
2018-07-16 11:06:28