pyparsing
pyparsing copied to clipboard
ImportError: cannot import name 'Literal' from 'pyparsing' (unknown location) python
File "D:\anaconda3\envs\torch12\lib\site-packages\matplotlib\fontconfig_pattern.py", line 15, in
could you please provide some help? thanks
Literal has been in every version of pyparsing as far back as 0.9, so I suspect there is something in your PYTHONPATH that is masking the pyparsing module itself. Do you possibly have a pyparsing.py script somewhere in your development directories?
Closing this for now - please reopen if you have further notes on how to reproduce this issue.
Thanks for using pyparsing!