I have a hosted server running Ubuntu 15.10, as I use Python 3.6 on my development machine I installed that (wget URL, configure, make, make install etc), this is the point I realised that Ubuntu already had Python 3.4.3 already installed and my life was becoming complicated.
The first symptom of having multiple versions was getting pip to behave, I had a lot of trouble and ended up removing the Ubuntu version of Python and reinstalling it. This seemed to fix things (mostly), but python3 now is linked to my python 3.6.0 install, but pip3 is linked to the 3.4.3 version.
If I start python with python3.4 then it loads the 3.4.3 and I can use it with the packages I have downloaded (primarily MySQLdb (the fork for 3x Python)).
All the above is obviously not ideal, but I thought since it works I will keep testing my setup. The problem is that when the www-data user runs python3.4 it cannot find the packages; I presume it is looking in the wrong place.
Ideally I would like to get rid of Python3.6.0 and just use the native bundled 3.4.3. The multiple installs seem to be causing pip (and me) a lot of confusion.
make
to uninstall it that should get rid of it. Runsudo make uninstall
from the install directory . – George Udosen Jan 30 '17 at 19:00