sudo easy_install MySQL-pythonubuntu常用命令

修改密码

sudo passwd root

安装openssh-server

sudo apt-get install openssh-server 

安装easy_install

sudo wget -q http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py

安装setuptools

sudo easy_install setuptools

安装pip

sudo easy_install pip

安装django

sudo pip install django
python
>>> import django
>>> django.VERSION

django-admin.py startproject depot
cd depot
python manage.py runserver

安装MySQLdb(django环境)

sudo apt-get install python-setuptools
sudo apt-get install libmysqld-dev
sudo apt-get install python-devsudo easy_install MySQL-python
 

安装MySQLdb(flask环境)

sudo easy_install distribute
sudo easy_install MySQL-python
上一篇:mac上用teamviewer远程windows输入问题


下一篇:scrapy 登陆知乎