脚本启用python虚拟环境

#!/bin/bash

rm -rf /data/website/activities/virtualenv
virtualenv --no-site-packages -p python3 /data/website/activities/virtualenv
source /data/website/activities/virtualenv/bin/activate
pip install -r /data/website/activities/source/requirements.txt

rm -rf /data/website/file/virtualenv
virtualenv --no-site-packages -p python3 /data/website/file/virtualenv
source /data/website/file/virtualenv/bin/activate
pip install -r /data/website/file/source/requirements.txt

 

posted @ 2018-01-20 13:44  Oops!#  阅读(1158)  评论(0编辑  收藏  举报