脚本启用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