I just installed Python 3.7 from python.org. I followed this StackOverflow post to change my default Python to Python 3. From there I ran the Update Shell Profile.command and Install Certificates.command (Finder > Applications > Python 3.7).
Then I found that I couldn't run the pip command
> $ pip --version
> -bash: pip: command not found
Subsequently I ran the following 2 commands..
> $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
>
> $ python get-pip.py
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 5.5MB/s
Collecting wheel
Downloading https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl (41kB)
100% |████████████████████████████████| 51kB 12.1MB/s
Installing collected packages: pip, wheel
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
Consider using the `--user` option or check the permissions.
Then I added the --user
flag
> $ python get-pip.py --user
>
> Collecting pip Using cached
> https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
> Collecting wheel Using cached
> https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl
> Installing collected packages: pip, wheel
This is what I don't understand
> The script wheel is
> installed in '/Users/kevinturney/Library/Python/2.7/bin' which is not
> on PATH.
> Consider adding this directory to PATH or, if you prefer to
> suppress this warning, use --no-warn-script-location.
What is the wheel and how do I add this to the correct path?
> $ which python
> /usr/local/opt/python/libexec/bin/python
What is the wheel and how do I add this to the correct path?