关于Debian和Ubuntu安装面板mysql缺少组件解决办法!!
相信不少人用Debian/Ubuntu在安装宝塔面板后,都会发现无法创建数据库
提示需要 pip install mysql-python
可是,执行后提示
Downloading/unpacking mysql-python
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement mysql-python
No distributions at all found for mysql-python
Storing complete log in /root/.pip/pip.log
百度了好久,找到了解决办法
用vi编辑 ~/.pip/pip.conf
[global]
index-url=http://pypi.douban.com/simple/
保存,在执行 pip install mysql-python
OK收工
至于为什么是douban 豆瓣,我不知道。。。。。
|
|