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
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
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