我在使用yum install mysql-python
安裝MySQLdb時收到此消息。如何在Python 2.6中安裝MySQLdb CentOS
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sin3.sg.voxel.net
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
No package mysql-python available.
Error: Nothing to do
更新
結果爲yum repolist
[email protected] [~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sin3.sg.voxel.net
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
repo id repo name status
base CentOS-6 - Base 6,019+362
extras CentOS-6 - Extras 13
updates CentOS-6 - Updates 802+140
repolist: 6,834
嘗試使用'pip'。 'pip安裝mysqldb-python'。 –
'pip install'或'easy_install'? –
MySQL-python在基本倉庫中。 'yum install MySQL-python' – jgb