I am trying to install python-scitools via ‘sudo apt-get install python-scitools’.
It gives the following output
The following extra packages will be installed:
python-matplotlib
Suggested packages:
python-excelerator python-matplotlib-doc python-traits python-wxgtk2.8octave
The following NEW packages will be installed:
python-matplotlib python-scitools
0 upgraded, 2 newly installed, 0 to remove and 203 not upgraded.
Need to get 0 B/2,596 kB of archives.
After this operation, 9,250 kB of additional disk space will be used.
Do you want to continue [Y/n]?
The point is that I already installed python-matplotlib manually (because I needed latest version 1.2.0).
If I tipe ‘matplotlib.path‘ in ipython, it returns
['/usr/local/lib/python2.7/dist-packages/matplotlib']
My question is, How can I tell the system, matplotlib is installed?
As you guessed, I am amateur with this things.
thank you
Installing stuff by hand vs installing via package manager do not play nice together. You can always build what ever you want on top of the packages, but you can not (easily) go the other way.
The dependency check that
aptis doing are against it’s internal database, and it rightly thinks thatmatplotlibis not installed. This is a feature, not a bug, as it allows the packaging system to very quickly determine if the dependencies are installed. You can probably build your own.debto install, but that can be a bit of a hassle (as it involves understanding the debian build system).You might be able to install the packaged version and just make sure your hand installed version is higher is
PYTHONPATHthan the system one. It wastes a bit of hdd space, but meh.(you can set the location of the install path via
setupy.py install --prefix=/path/to/where/ever).PYTHONPATHis an enviromental variable so you can set it using a whole slew of methods.will set the variable for just one process. You can also add
to your
.bashrc(or.bash_profile, I always get the role of those two mixed up) which will get run every time you start a shell.If that does not work, you probably need to use the packaged version of
matplotlib(which may require deleting your current installation of it), or installing everything you want, which depends onmatplotlib, by hand.