Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将matplotlib用于学校项目,但无法将其安装在我的 Mac 上。我下载了它的一个版本,但是当我尝试导入它时它不起作用。我有 mac os x 10.5.8,想知道是否有人可以推荐我在哪里可以找到合适的软件包。
我永远无法让它以正确的方式工作,所以我通过 GitHub 完成了。
打开终端并执行:
git clone https://github.com/matplotlib/matplotlib.git
然后更改到它将自动创建的文件夹(位于您的主文件夹中)并执行以下操作:
python setup.py build
然后
python setup.py install
对于其中的一些,您可能不得不 sudo 。