1、安装virtualenv 为了防止后期出错,在python2.7和python3.6都安装 pip3 install virtualenv pip install virtualenv 为了下载更快,使用镜像源下载。