100 Star 354 Fork 102

resolvewang / WeiboSpider

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
env.sh 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
PROJ_DIR=`pwd`
VENV=${PROJ_DIR}/.env
PROJ_NAME=WeiboSpider
# if your python release is not anaconda or cpython, please change the code below
ANACONDA_EXISTS=`which conda`
if [ $? -eq 0 ];then
conda install virtualenv -yq
else
pip3 install -i https://pypi.douban.com/simple/ virtualenv
fi
if [ ! -d ${VENV} ];then
virtualenv --prompt "(${PROJ_NAME})" ${VENV} -p python3
fi
source ${VENV}/bin/activate
export PYTHONPATH=${PROJ_DIR}
export PROJ_DIR
export PATH=${PATH}:${VENV}/bin
# if your host is in China, use douban's pypi to speed up
pip3 install -i https://pypi.douban.com/simple/ -r requirements.txt
Python
1
https://gitee.com/resolvewang/WeiboSpider.git
git@gitee.com:resolvewang/WeiboSpider.git
resolvewang
WeiboSpider
WeiboSpider
master

搜索帮助