[Nix-dev] matplotlib not found by python
Andrew Fraser
andy at fraserphysics.com
Thu Jan 14 06:27:26 CET 2016
Hi,
Last month, I asked for help as I built the nix package system and
installed it in a non-standard location. Thanks for that help. Once
I understand nix a little better, I hope to modify the wiki page about
installing nix in a home directory and answer a few questions others
have asked.
I write today to ask for help getting matplotlib running.
Here is the list of packages that I've installed:
krunk at cathcart:~$ nix-env -q
emacs-24.5
emacs-auctex-11.87.7
emacs-magit-2.3.1
git-2.7.0
hello-2.10
nix-1.10
python-2.7.11
python2.7-ipython-4.0.0
python2.7-matplotlib-1.5.0
python2.7-numpy-1.10.2
python2.7-scipy-0.16.1
python3-3.5.1
python3.5-ipython-4.0.0
python3.5-matplotlib-1.5.0
python3.5-numpy-1.10.2
python3.5-scipy-0.16.1
texlive-combined-full-2015
krunk at cathcart:~$
And here is the error that I must resolve:
krunk at cathcart:~$ python
Python 2.7.11 (default, Jan 01 1970, 00:00:01)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib
>>>
In my packages directory I find:
krunk at cathcart:/local/nixpkgs$ git remote -v
origin https://github.com/NixOS/nixpkgs.git (fetch)
origin https://github.com/NixOS/nixpkgs.git (push)
krunk at cathcart:/local/nixpkgs$
The fact (quoted from history|grep nix) that I issued the following
command to enable me to install ipython may be relevant:
331 nix-env --set-flag priority 6 python-2.7.11
332 time nix-env -j20 --cores 0 -i python3-3.5.1
Also relevant may be the fact that I installed matplotlib last with:
360 time nix-env -j20 --cores 0 -i python2.7-matplotlib-1.5.0 python3.5-matplotlib-1.5.0
Thanks for any advice,
Andy
More information about the nix-dev
mailing list