centos - How to run the python environment in the one-click installation environment of lnmp (php)
淡淡烟草味
淡淡烟草味 2017-05-19 10:06:58
0
5
690

The server is centos

The background language of the server is PHP, but there is an open source library that is a Python version. How can we run two environments on one server? Newbies please give me some guidance, thank you

淡淡烟草味
淡淡烟草味

reply all(5)
给我你的怀抱

Installing python will solve the problem and there will be no conflict.

刘奇
  • Python multi-version management tool recommends pyenv

  • To run python website, Gunicorn + Nginx is recommended

巴扎黑

yum install python

某草草

Linux environments all come with python, but you can also install a different version of python based on your open source library; as for usage, you can call the shell或者python command through php to run it. There is no conflict with this.

我想大声告诉你

You can try to install a suitable python environment, which is generally divided into two types, python2.7 environment and Python3.6 environment. Depends on your needs

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!