os x python脚本未读取/Users/myname/.matplotlib/matplotlib

2024-09-26 22:51:08 发布

您现在位置:Python中文网/ 问答频道 /正文

在终点处运行下面的脚本

import matplotlib
print(matplotlib.matplotlib_fname())

/usr/local/Cellar/python/2.7.6/Frameworks/框架/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc

但在短信里运行我得到

/Users/myname/.matplotlib/matplotlibrc文件

什么在控制使用哪个matplotlibrc?我如何控制它?你知道吗

我使用brew安装了python-2.7。你知道吗


Tags: import脚本框架matplotliblibusrlocalsite

热门问题