新建一个requirements.txt文件:
pip>=19.1.1
APScheduler>=3.5.3
flask>=1.0.2
flask-compress>=1.4.0
Flask-SQLAlchemy>=2.3.2
logparser==0.8.2
requests>=2.21.0
setuptools>=40.6.3
six>=1.12.0
SQLAlchemy>=1.2.15,<1.4.0
w3lib>=1.17.0
logparser
在文件的同级目录下打开cmd窗口输入:
python3 -m pip install -r requirements.txt
若有安装超时报错可附加国内镜像源链接:
python3 -m pip install -r requirements.txt -i https://pypi.douban.com/simple