Python 生成requirement 使用requirements.txt
python项目中必须包含一个 requirements.txt 文件,用于记录所有依赖包及其精确的版本号。以便新环境部署。 requirements.txt可以通过pip命令自动生成和安装 生成requirements.txt文件 pip freeze > requirements.txt
amqp==2.4.1 APScheduler==3.5.3 asn1crypto==0.24.0 backcall==0.1.0 bcrypt==3.1.4 billiard==3.6.0.0 celery==4.3.0rc2 certifi==2018.10.15 cffi==1.11.5 chardet==3.0.4 configparser==3.5.0 confluent-kafka==0.11.6 cryptography==2.3.1 cx-Oracle==7.0.0 decorator==4.3.0 Django==2.1.2 django-crontab==0.7.1 idna==2.7 ipython==7.0.1
安装requirements.txt依赖 pip install -r requirements.txt

更多精彩