安装virtualenv

Ubuntu安装virtualenv步骤:

sudo apt install virtualenv virtualenvwrapper

然后配置文件~/.bashrc

在文件最后添加 source '/usr/share/virtualenvwrapper/virtualenvwrapper.sh'

然后执行

source .bashrc

 创建虚拟环境

创建的虚拟环境是基于python的,所以都是拷贝python的部分

 安装django

 创建项目:

原文地址:https://www.cnblogs.com/shamoguzhou/p/15121319.html