Linux下安装下载matplotlib

这篇博客介绍了在Linux操作系统中安装matplotlib库的过程,解决运行sumo中的osmWebWizard.py文件时遇到的问题。通过参考链接提供的指南,解决报错,并详细说明了如何设置环境变量以确保成功运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

运行sumo中的osmWebWizard.py 文件需要

  1. apt-get install python3-tk
  2. apt install python3-pip
  3. pip3 install matplotlib
    或者参考此链接
    还有bug再参考此链接链接

报错时:

/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')

或者
在这里插入图片描述解决:
设置环境变量

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值