I have problems with pip on mac osx

1

I am trying to install a library for python 2.7 in mac osx with pip in the following way:

python -m pip install pyttsx

and the shell returned: /usr/bin/python: No module named pip

Then I tried to prove that if it existed with python like this

and showed that if there was a pip, then where is this pip? How do I fix this? How can I install that library?

    
asked by ger 08.05.2018 в 05:27
source

2 answers

1

The problem is that the version of python that is installed in macOS does not come with pip .

If you need pip to work with the version 2.7 of python that is included with macOS you have to install it by executing the following command

sudo python -m ensurepip
    
answered by 08.05.2018 / 06:04
source
0

Installation Pip

curl -O https://bootstrap.pypa.io/get-pip.py  
python get-pip.py --user  
export PATH=~/.local/bin:$PATH >> ~/.bash_profile   
source ~/.bash_profile

I hope I help you.

    
answered by 10.05.2018 в 19:54