Thread: Python Apache problem
07-12-2010, 12:57 AM #1
Python Apache problem
- Member Since
- Jul 12, 2010
I have a problem understanding how the Python installations on my Macbook are working.
When I run Python programs from Terminal window, they are using this Python:
When I type "which python" it shows:
When I run Python scripts in browser (.py scripts) the errors show that Apache is trying to use this python:
By the above, you would have realised that I have MAMP installed.
I have also installed SPMPT on top of MAMP (this installs the mod_python for MAMP and also comes with its own python)
So, my question is, whats going on here? and How can I easily tell Apache which Python to use while executing Python scripts in browser and visa versa, how can I configure Terminal and tell it to use a specific Python installation on my computer.
My ideal solution would be, terminal start using the same python that my Apache is using.
Looking forward to your answers.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By NickBird in forum Switcher HangoutReplies: 0Last Post: 11-14-2008, 01:54 AM
By metb in forum OS X - Development and DarwinReplies: 0Last Post: 11-15-2007, 09:23 AM
By MBPro in forum Switcher HangoutReplies: 2Last Post: 09-04-2007, 03:22 AM
By pkny in forum OS X - Development and DarwinReplies: 4Last Post: 03-20-2005, 05:17 PM
By jon_bennett in forum OS X - Operating SystemReplies: 0Last Post: 12-19-2003, 11:47 AM