背景

需要使用到matplotlib 3.5的新特性决定升级
搜索pip源发现python 3.6最高支持matplotlib 3.2
而matplotlib 3.5仅适配python 3.7+

安装

一定不要尝试卸载18.04自带python 3.6否则系统会崩溃

sudo apt install python3.8

依赖

安装3.8包管理工具

sudo apt install python3.8
sudo apt install python3.8-distutils

wget https://bootstrap.pypa.io/get-pip.py
sudo python3.8 get-pip.py

升级

pip3 install matplotlib==3.5.0

参考

Pip for Python 3.8 - Stack Overflow

相关文章:

  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-01-19
  • 2021-12-03
  • 2021-09-01
  • 2021-10-08
猜你喜欢
  • 2021-06-12
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-12-31
  • 2021-12-03
相关资源
相似解决方案