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