<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<div>I've got it installed and running, but I can't figure out how to make it the default as far as Apache is concerned. I have an extremely simple script:</div><div><br></div><div><div>#!/usr/bin/env python</div><div>print ("Content-Type: plain;charset=utf-8\r\n")</div><div>print()</div><div><br></div><div>print("Hello World!")</div></div><div><br></div><div>which runs as a Python 2.7 script as expected after enabling </div><div>LoadModule cgi_module libexec/apache2/mod_cgi.so </div><div>in https.conf, but if I try to change 'python' to 'python3' I get a 500 error and the Apache error log says:</div><div><br></div><div>[Sun Mar 31 13:34:38.253331 2019] [cgi:error] [pid 26370] [client ::1:52412] End of script output before headers: testLocalHost.py<br></div><div><br></div><div>I tried adding the two lines below in httpd.conf but that just resulted in the same 500 error.</div><div><br></div><div><div>LoadModule wsgi_module /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mod_wsgi/server/<a href="http://mod_wsgi-py37.cpython-37m-darwin.so">mod_wsgi-py37.cpython-37m-darwin.so</a></div><div>WSGIPythonHome /Library/Frameworks/Python.framework/Versions/3.7</div></div><div><br></div><div>I was on the verge of trying this:</div><div><br></div><div>ln -s /Library/Frameworks/Python.framework/Versions/3.7 /usr/bin/python3<br></div><div><br></div><div>but since I really don't know what I'm doing, I got cold feet and decided to ask for help. Thanks.</div><div><br></div><div>David</div><div><br></div></div></div></div></div></div></div>