I am new to Python and there are some things which I am not able to apprehend. Questions may seem like very kiddish, so bear with me.
As you know, Ubuntu comes with an outdated Python version. I wished to use the latest python. But since it is recommended not to override the system's python, I installed virtualenv
.
I installed pip
first, using sudo apt-get install python-pip
.
Then installed virtualenv
, using sudo pip install virtualenv
, and did all the configurations required to link it to the latest python.
The questions which I want to ask are-
Where does the command
pip install <module>
store the module in the system? I am asking this question because there is a section in this link, which says "Installation into Python". I was confused by this, thinking whether installing a python module is sensitive to which python version I am using. If it is so, then where doespip
install the module if I am usingvirtualenv
and otherwise.I have manually installed Apache HTTP Server 2.4.23 using this link. While installing
mod_wsgi
using commandsudo pip install mod_wsgi
, I am getting this errorRuntimeError: The 'apxs' command appears not to be installed or is not executable. Please check the list of prerequisites in the documentation for this package and install any missing Apache httpd server packages.
I searched for it and the solution is to install developer package of Apache. But the problem is that I am not able to find it anywhere on it's site. I want to install it manually. What to do? Also, If I install it through sudo apt-get install apache2-dev
, Will there be any difference ?
Note: As mentioned on this link, I have already set the value of APXS
environment variable to the location of apxs
script, which is /usr/local/apache/bin/apxs
.