Python on Mac: Fink? MacPorts? BUILTIN? Homebrew? Binary installer?

For the past few days, I have been trying to use Python for some sound development.

The fact is that Mac OSX does not cope with uninstalling. In fact, there is no way to remove anything. Once you are in your system, you better pray that it will not do any funny things. Therefore, I really do not want to rely on installer packages for Python.

So, I go to Homebrew and install Python using Homebrew. It works fabulously. Using pip, Numpy, SciPy, Matplotlib was also not a problem (large). Now I want to play audio. There are many different packages, but pip doesn't seem to want to install any. But there is a binary distribution of PyGame, which, I believe, should work with embedded Python.

Hence my question: what would you do? You just installed binary distributions and hope that they will interact well and do not need to be uninstalled? Will you make your way through the package management system you prefer and solve its problems? Something else?

+4
source share
1 answer

Short answer: use virtualenv

Longer answer:

1) Leave the Python system as it is (do not touch it at all)
2) Install various versions of Python through this assembly: https://github.com/collective/buildout.python
3) Use virtualenv for each project

+6
source

Source: https://habr.com/ru/post/1340634/


All Articles