简体   繁体   English

python中的Requirement.txt文件

[英]Requirement.txt file in python

I want to install PHP on the server. 我想在服务器上安装PHP。 and I want to install it with Python script. 我想用Python脚本安装它。 Can I include PHP (some version number) in the reqirements.txt file and install it on the server? 我可以在reqirements.txt文件中包含PHP(某些版本号)并将其安装在服务器上吗? If not, then how can I install PHP on the server using a python script? 如果没有,那么如何使用python脚本在服务器上安装PHP?

You can't install php as a python package. 您不能将php作为python软件包安装。 Have a look at fabric , ansible or salt 看一下织物ansible

Short answer is no. 简短的答案是没有。 Have a look at configuration management tools like Puppet , Chef , or Salt . 查看配置管理工具,例如PuppetChefSalt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM