为了将 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?我还需要设置其他变量吗?