0

I created and hosted my python flask script in apache, everything is fine. when I go to my ip in the browser I get this error msg.

`Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.`

and the apache error.log says,

 [Sun Feb 25 21:03:57.413129 2018] [wsgi:error] [pid 4536:tid 2972494656] [client 192.168.1.2:48610] 
 ImportError: No module named flask

but flask is successfully installed in python3. I installed it using pip3 install flask and if I run my flask file also running successfully,

But apache/wsgi referring python2 to run my script. please help me to resolve this. Thanks in advance!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.