<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I've run into that problem too, Dave. Xcode creates conflicts if
you don't use Homebrew right. <br>
</p>
<p>I had to completely delete Python and then re-install, myself! <br>
</p>
<p>Try this: </p>
<p><a
href="https://python-guide-fil.readthedocs.io/en/latest/starting/install3/osx.html">https://python-guide-fil.readthedocs.io/en/latest/starting/install3/osx.html</a>
<br>
</p>
<p>Bram<br>
</p>
<div class="moz-cite-prefix">On 3/31/2019 2:49 PM, David Greenberg
via Hidden-discuss wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPHa+kgdZo9=i6hTR90hRzZurSjs71PcA-7=NCv3aQHZYFst=g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true">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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Hidden-discuss mailing list - home page: <a class="moz-txt-link-freetext" href="http://www.hidden-tech.net">http://www.hidden-tech.net</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hidden-discuss@lists.hidden-tech.net">Hidden-discuss@lists.hidden-tech.net</a>
You are receiving this because you are on the Hidden-Tech Discussion list.
If you would like to change your list preferences, Go to the Members
page on the Hidden Tech Web site.
<a class="moz-txt-link-freetext" href="http://www.hidden-tech.net/members">http://www.hidden-tech.net/members</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Martin Bram Moreinis, Designer/Developer
<a class="moz-txt-link-freetext" href="http://myinstructionaldesigns.com">http://myinstructionaldesigns.com</a>
(413) 829-0355</pre>
</body>
</html>