为了将matplotlib安装到非默认位置,我更改了文件setup.cfg,设置了变量basedirlist。将matplotlib安装在不同的默认位置
我做
python setup.py build
然后
python setup.py install
但最后失败,因为:
copying build/lib.linux-x86_64-2.6/mpl_toolkits/axes_grid1/colorbar.py -> /opt/python/2.6.4/lib/python2.6/site-packages/mpl_toolkits/axes_grid1
error: could not delete '/opt/python/2.6.4/lib/python2.6/site-packages/mpl_toolkits/axes_grid1/colorbar.py': Read-only file system
我没有根,所以我怎么能安装matplotlib?有什么其他变量我必须设置?
你可以使用'easy_install'吗?这就是我使用的,试试:'easy_install -a -U --install-dir non/default/directory'。虽然请注意http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install – Chris 2012-04-20 10:38:05
谢谢,但我应该安装easy_install – simona 2012-04-20 15:36:38