[Tutor] MacOS many copies of python
Mats Wichmann
mats at wichmann.us
Fri Dec 20 10:39:47 EST 2019
On 12/20/19 5:01 AM, Seven of Nine via Tutor wrote:
> Hello,
>
> I have MacOS Catalina, and have many copies of python installed, trying
> to get pygame to work. Which is complicated by the fact that it only
> works on 32-bit version of 2.7, which I installed (via pip) but
> apparently i have some other version as my "base" install.
>
> Going into the python: I import sys, then print sys.path - and get the
> following
>
> ['',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
> '/usr/local/Cellar/python at 2/2.7.17/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/site-packages']
>
>
> That doesn't look right? or clean to me?
no, that looks fine. For any given Python version there will typically
be many places that need to be searched for pieces that are relevant to
using it. That's all just one version.
you should probably try Python 3.7 (pygame binaries for the mac are not
up yet for 3.8), 2.7 is effectively unsupported (officially unsupported
as of Jan 1).
You can see what pygame bundles are available here for pip to find:
https://pypi.org/project/pygame/#files
More information about the Tutor
mailing list