Matplotlib安装导入

2024-05-16 20:26:52 发布

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

我正在为我的Angstrom Beaglebone设置Matplotlib。我按照这里的说明:http://matplotlib.org/faq/installing_faq.html#install-from-git并成功地下载了matplotlib。在

python setup.py install

结果如下所示。我安装了numpy。为什么我会得到这个错误?请帮帮我。在

^{pr2}$

Tags: installfrompyorggitnumpyhttpmatplotlib
1条回答
网友
1楼 · 发布于 2024-05-16 20:26:52

你需要你的SO的依赖性,比如在ubuntu上sudo apt-get build-dep python-matplotlib

If you are on debian/ubuntu, you can get all the dependencies required to build matplotlib with: sudo apt-get build-dep python-matplotlib If you are on Fedora/RedHat, you can get all the dependencies required to build matplotlib by first installing yum-builddep and then running: su -c "yum-builddep python-matplotlib" This does not build matplotlib, but it does get all of the build dependencies, which will make building from source easier. If you want to be able to follow the development branch as it changes just replace the last step with (make sure you have setuptools installed):

python setup.py develop This creates links in the right places and installs the command line script to the appropriate places.

注意:Mac OSX用户请参阅“在OSX上构建”指南。Windows用户 请参阅Windows上的Building指南。在

相关问题 更多 >