I have already installed numpy successfully and I'm now trying to install matplotlib. I am following the steps found on the following website:
http://matplotlib.org/faq/installing_faq.html#source-install-from-git
The error occurs after the following command:
python setup.py install
Here is the error:
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: can't create or remove files in install directory '
The following error occurred while trying to add or remove files in the installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-24752.pth'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
I am working as the administrator on my machine and (I think) have all the rights to read/write files:
administrator@ubuntu:/usr/local/lib/python2.7/dist-packages$ ll -a
total 8
drwxrwsr-x 2 root staff 4096 Aug 20 2013 ./
drwxrwsr-x 4 root staff 4096 Mar 9 11:04 ../
What is the problem and how do I fix it?