Cannot import matplotlib after installing pyparsing, dateuil, six and numpy

前端 未结 3 743
青春惊慌失措
青春惊慌失措 2021-01-23 10:47

As title, I cannot import matplotlib...

And here is the code:

import cv2
import numpy as np
from matplotlib import pyplot as plt

img = cv2.imread(\'pict         


        
3条回答
  •  无人及你
    2021-01-23 11:16

    The error has occurred due to the recent version of pyparsing being in conflict with matplotlib, which pip has picked up.

    The workaround would be to: pip install pyparsing==2.1.1 followed by pip install matplotlib

提交回复
热议问题