- 安装Mysql
sudo apt-get install mysql-server mysql-client
root@IdeaPad:/# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 36 Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. mysql> ^Z [1]+ 已停止 mysql -u root -p #说明安装Mysql成功
- 安装Django
pip install Django==1.6.5
- 安装MySQLdb
sudo apt-get install python-mysqldb
-
>>>import django >>>import MySQLdb
没有报错说明安装成功
-
root@IdeaPad:/var/www/server# python manage.py runserver Validating models... 0 errors found June 27, 2014 - 10:12:26 Django version 1.6.5, using settings ‘server.settings‘ Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. [27/Jun/2014 10:12:32] "GET / HTTP/1.1" 200 1757
相关文章
- 07-11咸鱼K210体验笔记—环境配置及固件安装
- 07-11M1 Dock智能硬件环境搭建(MaixPy安装及使用)
- 07-11win7安装SQL2005出现29506错误
- 07-11菜单形式安装Haproxy的脚本
- 07-11Ceres Solver 在win8+vs2013环境下的安装
- 07-11TMS320C6678开发工具包汇总分享(安装包+库+例程+美化工具)
- 07-11Intern Day4 - Rider学习WebAPI时候遇到红色字体没有安装依赖解决办法
- 07-11maven 手动安装jar到仓库的命令
- 07-11MyEclipse8.6下的svn插件安装
- 07-11Kaggle API下载与安装