Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Python Apache problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ssdesign" data-source="post: 1081283" data-attributes="member: 165070"><p>Hi,</p><p>I have a problem understanding how the Python installations on my Macbook are working.</p><p></p><p>When I run Python programs from Terminal window, they are using this Python:</p><p>/Library/Python/2.6/</p><p></p><p>When I type "which python" it shows:</p><p>/usr/bin/python</p><p></p><p>When I run Python scripts in browser (.py scripts) the errors show that Apache is trying to use this python:</p><p>/Applications/MAMP/python/framework/Python.framework/Versions/2.6/lib/python2.6/</p><p></p><p>By the above, you would have realised that I have MAMP installed.</p><p>I have also installed SPMPT on top of MAMP (this installs the mod_python for MAMP and also comes with its own python)</p><p></p><p>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.</p><p></p><p>My ideal solution would be, terminal start using the same python that my Apache is using.</p><p></p><p>Looking forward to your answers.</p></blockquote><p></p>
[QUOTE="ssdesign, post: 1081283, member: 165070"] Hi, 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: /Library/Python/2.6/ When I type "which python" it shows: /usr/bin/python When I run Python scripts in browser (.py scripts) the errors show that Apache is trying to use this python: /Applications/MAMP/python/framework/Python.framework/Versions/2.6/lib/python2.6/ 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. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Python Apache problem
Top