'Issue running mypy with python version python2

Im having an issue running mypy for a python2 file. In my file, I call import dateparser. Running mypy --python-version 2.7 myfile.py results in an error saying Library stubs not installed for "dateparser" (or incompatible with Python 2.7) . I have installed types-dateparser. Even running mypy with --install-types --non-interactive gives me the same error. Any advice?

Im running with mypy .931, types-dateparser==1.0.14



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source