【发布时间】:2012-04-20 10:32:12
【问题描述】:
为了将 matplotlib 安装到非默认位置,我更改了 setup.cfg 文件,设置了变量 basedirlist。
我愿意
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
我不是root,如何安装matplotlib?我还需要设置其他变量吗?
【问题讨论】:
-
你能用
easy_install吗?这是我用的,试试:easy_install -a -U --install-dir non/default/directory。虽然注意stackoverflow.com/questions/3220404/… -
谢谢,但我应该安装 easy_install
标签: python installation matplotlib