Home  >  Q&A  >  body text

centos - How to run the python environment in the one-click installation environment of lnmp (php)

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

淡淡烟草味淡淡烟草味2710 days ago670

reply all(5)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:08:58

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

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:08:58

    • Python multi-version management tool recommends pyenv

    • To run python website, Gunicorn + Nginx is recommended

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-19 10:08:58

    yum install python

    reply
    0
  • 某草草

    某草草2017-05-19 10:08:58

    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.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:08:58

    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

    reply
    0
  • Cancelreply