Ubuntu下搭建python开发环境

来源:互联网 发布:软件研究所 导师 编辑:程序博客网 时间:2024/05/23 22:03

Ubuntu下搭建python开发环境

1. 下载安装python运行环境

Ps:ubuntu自带python2.7环境,如需下载安装,可使用以下命令

首先输入sudo passwd 输入root相关密码,输入su,进入超级管理员

 

Sudo apt-get install python

Sudo apt-get install python-dev(编译外部模块文件使用的)

Sudo apt-get install python-pip

sudo apt-get install libxml*

sudo apt-get install net-tools

sudo apt-get install lsof

2.安装 数据库---------

apt-get install mysql-server

apt-get install mysql-client

apt-get install libmysqlclient-dev

数据库安装完成后,测试数据库连接,远程链接及本地连接,如果连接成功则继续向下

 

 

 

3.更新pip版本---------

pip install --upgrade pip

4.安装SSH---------

sudo apt-get install openssh-server

5.安装 Nginx---------

sudo apt-get install nginx

6.安装 uwsgi---------

sudo pip install uwsgi

 

 

django项目通过FileZill上传到ubuntu下/home/project目录下,安装项目运行所需第三方包,数据库数据迁移,进入项目目录,运行项目,访问查看是否有问题