因为要安装matplotlib,发现apt安装需要一系列库,只好使用pip
发现同事的ubuntu安装了较新的版本libpng和freeetype
sunyao@sunyao-VirtualBox:~$ sudo apt-get install -f libpng-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpng12-dev : Depends: libpng12-0 (= 1.2.50-1ubuntu2) but 1.2.50-1ubuntu2.14.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo ap