I am trying to install a library for python 2.7 on mac osx with pip as follows:
python -m pip install pyttsx
and the shell returned:
/usr/bin/python: No module named pip
So I tried to test that if it existed with python like this
and showed that if pip exists, then where is pip? How do I fix this? How can I install that library?
The problem is that the version of python that comes installed on macOS does not come with
pip
.If you need
pip
to work with version 2.7 of python that comes included with macOS you have to install it by running the following commandpip installation
I hope it helps you.