I
I
Ilyas2017-05-16 14:41:28
Django
Ilyas, 2017-05-16 14:41:28

How to change python version?

Hello, how can I change the version of the python interpreter in apache?
Here is the apache config

Alias /static /home/myprojectname/static
<Directory /home/myprojectname/static>
    Require all granted
</Directory>

<Directory /home/myprojectname/myprojectname>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess myprojectname python-path=/home/myprojectname:/home/myprojectnameenv/lib/python3.4/site-packages display-name=%{GROUP}
WSGIProcessGroup myprojectname
WSGIScriptAlias / /home/myprojectname/myprojectname/wsgi.py process-group=myprojectname

Here is the version of apache and python
618e4e0070784816846c149aafbbce16.jpg
How can I change the version of python to 3.4?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilyas, 2017-05-16
@id2669099

I will answer myself: you
need to install the python35u-mod_wsgi package

wget https://centos7.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*rpm
yum --enablerepo=ius-dev install python34u-mod_wsgi

after that everything worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question