Mac 上的 Python:Fink? Mac端口?内置?自制?二进制安装程序?
最近几天,我一直在尝试使用Python进行一些音频开发。
问题是,Mac OSX 不能很好地处理卸载内容。事实上,没有办法卸载任何东西。一旦它进入你的系统,你最好祈祷它没有做任何有趣的事情。因此,我真的不想依赖 Python 安装程序包。
所以我转向 Homebrew 并使用 Homebrew 安装 Python。效果非常好。使用 pip、Numpy、SciPy、Matplotlib 也没有(大)问题。现在我想播放音频。那里有许多不同的软件包,但 pip 似乎不愿意安装任何一个。 但是,PyGame 有一个二进制发行版,我想它应该可以与内置的 Python 一起使用。
因此我的问题是:你会做什么?您是否只安装二进制发行版并希望它们能够良好地互操作并且永远不需要卸载?您会破解您喜欢的包控制管理系统并解决其问题吗?还有别的事吗?
For the last few days, I have been trying to use Python for some audio development.
The thing is, Mac OSX does not handle uninstalling stuff well. Actually, there is no way to uninstall anything. Once it is on your system, you better pray that it didn't do any funny stuff. Hence, I don't really want to rely on installer packages for Python.
So I turn to Homebrew and install Python using Homebrew. Works fabulously. Using pip, Numpy, SciPy, Matplotlib were no (big) problem, either. Now I want to play audio. There is a host of different packages out there, but pip does not seem willing to install any. But, there is a binary distribution for PyGame, which I guess should work with the built-in Python.
Hence my question: What would you do? Would you just install the binary distributions and hope that they interoperate well and never need uninstalling? Would you hack your way through whichever package control management system you prefer and deal with its problems? Something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短答案: 使用 virtualenv
较长答案:
1)保持系统 Python 不变(根本不要碰)
2) 安装 不同版本Python 通过此构建:https://github.com/collective/buildout.python
3)为每个项目使用virtualenv
Short answer: use virtualenv
Longer answer:
1) Leave system Python as is (don't touch at all)
2) Install different versions of Python via this buildout: https://github.com/collective/buildout.python
3) Use virtualenv for every project