安装pip的方法:
Install pip and virtualenv for Ubuntu 16.04LTS Maverick and newer,输入下面命令
$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install –upgrade pip
$ sudo pip install –upgrade virtualenv
For older versions of Ubuntu
Install Easy Install
$ sudo apt-get install python-setuptools python-dev build-essential
Install pip
$ sudo easy_install pip
Install virtualenv
$ sudo pip install –upgrade virtualenv
安装mysql
apt-get install mysql-server
安装mysql拓展包可以:sudo pip install mysql-python
安装其他的包只要pip + 包的名字 就行了 很方便。而且安装完的mysqlib用起来没一点问题。
如果上面不好用,请用下面方法试试
For Python 3 sudo apt-get install python3-pip For Python 2 sudo apt-get install python-pip |