Re: [GTALUG] pip for Python3 installation issues on macOS (was python sweetness — The mysterious case of the Linux Page Table)

Forwarding this solution. -------- Original Message -------- From: Russell <rreiter91@gmail.com> Sent: January 5, 2018 10:21:02 AM EST To: R360 Design INC <r360design@gmail.com> Subject: Re: [GTALUG] pip for Python3 installation issues on macOS (was python sweetness — The mysterious case of the Linux Page Table) Nice step by step guide. Perhaps you should add it to the thread Myles forked. Did you hit reply all? Cheers Russell On January 5, 2018 9:37:39 AM EST, R360 Design INC <r360design@gmail.com> wrote:
Okay with the help of a more articulate guide (https://davidegerosa.com/installpython/), we were able to figure it out:
Currently we have three versions of Python installed: 2.7.10 (Native to Mac) 2.7.13 (Homebrew) 3.6.4 (Homebrew)
To invoke PIP specific to the Python version, we had to use "python(x) -m PIP list" r360design.ca
On Fri, Jan 5, 2018 at 9:11 AM, Russell <rreiter91@gmail.com> wrote:
On January 5, 2018 8:59:13 AM EST, "Myles Braithwaite 👾 via talk"
R360 Design INC via talk wrote:
Hi, Was wondering if we could squeeze in a question about Python installation on OS X on this thread:
To set up Python on Mac, we were advised to install the latest version of Python 3.6.4 and PIP3 (According to the Hitchhiker's Guide to Python http://docs.python-guide.org/en/latest/starting/install3/osx/) . The installation folder is:
MacBook-Pro: which python3 /usr/local/bin/python3
However, when we checked the package list, the packages are still pointed at the Python 2.7 packages folder (the native version of Python that ships with Mac). Is this correct or we need to re-install the packages for Python 3.6.4 using PIP3?
MacBook-Pro:bin owner$ pip3 show pandas Name: pandas Version: 0.22.0 Summary: Powerful data structures for data analysis, time series,and statistics Home-page: http://pandas.pydata.org Author: The PyData Development Team Author-email: pydata@googlegroups.com License: BSD Location: /Library/Python/2.7/site-packages/pandas-0.22.0-py2.7-macosx-10.12-intel.egg Requires: numpy, python-dateutil, pytz MacBook-Pro:bin owner$ pip3 show six Name: six Version: 1.11.0 Summary: Python 2 and 3 compatibility utilities Home-page: http://pypi.python.org/pypi/six/ Author: Benjamin Peterson Author-email: benjamin@python.org License: MIT Location: /Library/Python/2.7/site-packages
What does `pip3 --version` and `python3 -m pip show pip` show you?
As an example mine shows:
``` $ pip3 --version pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
$ python3 -m pip show pip Name: pip Version: 9.0.1 Summary: The PyPA recommended tool for installing Python packages. Home-page: https://pip.pypa.io/ Author: The pip developers Author-email: python-virtualenv@groups.google.com License: MIT Location: /usr/local/lib/python3.6/site-packages Requires: ```
I think pip for Python3 wasn't installed correctly. You might want to try reinstalled pip, <https://pip.pypa.io/en/stable/installing/> with python3.
Also it's generally best practice when replying to a thread in a mailing list with a new topic to change the subject like I did above. It helps the archiving of the mailing list so people can better browse.
I'm not particularly familiar with OS-X but you also could check out
<talk@gtalug.org> wrote: these links. Homebrew apparently handles package management for easy upgrades.
https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-o...
http://docs.python-guide.org/en/latest/starting/install3/osx/#install3-osx
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- Russell
-- Russell -- Russell
participants (1)
-
Russell