troubleshooting Question

Python Apache Mod_Python problem

Avatar of ssdesign
ssdesign asked on
Mac OS XPython
4 Comments1 Solution894 ViewsLast Modified:
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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros