[Hidden-tech] Python 3.7 on Mac

Bram Moreinis bram at greenfielddigital.com
Sun Mar 31 19:30:51 UTC 2019


I've run into that problem too, Dave.  Xcode creates conflicts if you 
don't use Homebrew right.

I had to completely delete Python and then re-install, myself!

Try this:

https://python-guide-fil.readthedocs.io/en/latest/starting/install3/osx.html 


Bram

On 3/31/2019 2:49 PM, David Greenberg via Hidden-discuss wrote:
> Hi All,
> 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:
>
> #!/usr/bin/env python
> print ("Content-Type: plain;charset=utf-8\r\n")
> print()
>
> print("Hello World!")
>
> which runs as a Python 2.7 script as expected after enabling
> LoadModule cgi_module libexec/apache2/mod_cgi.so
> in https.conf, but if I try to change 'python' to 'python3' I get a 
> 500 error and the Apache error log says:
>
> [Sun Mar 31 13:34:38.253331 2019] [cgi:error] [pid 26370] [client 
> ::1:52412] End of script output before headers: testLocalHost.py
>
> I tried adding the two lines below in httpd.conf but that just 
> resulted in the same 500 error.
>
> LoadModule wsgi_module 
> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-darwin.so 
> <http://mod_wsgi-py37.cpython-37m-darwin.so>
> WSGIPythonHome /Library/Frameworks/Python.framework/Versions/3.7
>
> I was on the verge of trying this:
>
> ln -s /Library/Frameworks/Python.framework/Versions/3.7 /usr/bin/python3
>
> but since I really don't know what I'm doing, I got cold feet and 
> decided to ask for help. Thanks.
>
> David
>
>
> _______________________________________________
> Hidden-discuss mailing list - home page: http://www.hidden-tech.net
> Hidden-discuss at lists.hidden-tech.net
>
> 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.
> http://www.hidden-tech.net/members

-- 

Martin Bram Moreinis, Designer/Developer
http://myinstructionaldesigns.com
(413) 829-0355

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hidden-tech.net/pipermail/hidden-discuss/attachments/20190331/6da2f08c/attachment.html>


Google

More information about the Hidden-discuss mailing list