Installing Mechanize gives error on MacOS Mojave For Python and Pip 2.7 This error is due to a version of ‘six’ which comes default with MacOS
Use the below command to ignore the version of six installed and install mechanize
$ pip2.7 install mechanize –ignore-installed six –user
For more information: https://github.com/pypa/pip/issues/3165