配置开发环境
1、先pip
2、更新软件
- sudo apt-get update
更新已安装的包
1、开始安装了虚拟环境
2、安装virtuallenvwrapper
3、创建虚拟环境的目录
4、添加虚拟环境的变量 在配置文件中
(1) 先找见virtualenvwrapper.sh 文件 拷贝目录
(2)打开主机的配置文件
![
(3)添加启动服务
虚拟环境已经搭建完成
1、创建一个虚拟环境
2、退出虚拟环境
3、进入虚拟环境
4、删除不想用的虚拟环境
在虚拟环境中安装mysql
安装之前:
sudo apt-get update
sudo apt upgrade
配置source list源
sources.list系统自带的,源是来Ubuntu的官网!安装包比较慢,所以最好切换成国内的:
abcd@ubuntu:~$ cd /etc/apt
abcd@ubuntu:/etc/apt$ sudo cp sources.list sources.list.bak
abcd@ubuntu:/etc/apt$ vim sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse