No attribute '__version__' error

“AttributeError: ‘version_info’ object has no attribute ‘version’”
I know there are many similar posts, but I haven’t found any solutions. I’m trying to use ‘import matplotlib.pyplot as plt’ and I get that error message. I’m using powershell to run it.

You’ll need to provide the full backtrace for anyone to help you.

Thanks! I’ve already solved it, by installing an older version of pyparsing.