On an ubuntu system on which I don't have sudo previleges, I wish to install a package via pip
(matplotlib to be precise), but some source packages are not installed on the system (however the binaries are installed).
I have created a virtual environment in which to install, and have downloaded the required source code, but I can't place them in the default /usr/include/
etc.. When pip
runs matplotlib's setup.py
script, the source files are reported as missing.
Is there a way to instruct pip
or setup.py
where to look for the source?
ps: setting CFLAGS
or CPPFLAGS
adds the locations of the downloaded source to compile instructions, but setup.py
didn't find the source, so didn't attempt to compile some components (graphic backends).
pps: this is similar to, but more specific than this question