Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apache2 using python2.7 & I want to use python3.4

I setup my server using python bottle & mod_wsgi my bottle script are all writing by python3.4 but the apache2 server using by default python2.7.6 ?

is there a way to make the python3.4 the default python on apache2

I'm stock right now

like image 645
saudi_Dev Avatar asked Jun 04 '16 11:06

saudi_Dev


1 Answers

I think you have installed mod_wsgi for python2 with this command:

sudo apt-get install libapache2-mod-wsgi

But if you want to use mod_wsgi with python3, you should install correct mod_wsgi with this command:

sudo apt-get install libapache2-mod-wsgi-py3
like image 185
Rosicky Avatar answered Sep 29 '22 19:09

Rosicky