简体   繁体   English

如何将Macports模块与Mac OSX预先安装的默认Python一起使用?

[英]How to use macports modules with the default version of Python preinstalled with Mac OSX?

I have a trouble with the install of the source distribution of potrace called potrace-1.10.tar.gz ( http://potrace.sourceforge.net/#downloading ) on Mac OSX Leopard 10.5.8. 我在Mac OSX Leopard 10.5.8上安装名为potrace-1.10.tar.gz( http://potrace.sourceforge.net/#downloading )的potrace的源发行版时遇到了麻烦。

So, I decided to install potrace with macports ("port install potrace") and I would like to use it with the preinstalled version of Python, the version 2.5. 因此,我决定使用macports安装potrace(“ port install potrace”),并且希望将其与预安装的Python版本2.5一起使用。 I don't want to work with macports because I use MAMP. 我不想使用macports,因为我使用MAMP。 All the other libraries I use are installed without macports. 我使用的所有其他库均未安装macports。

Is it possible to do that? 有可能这样做吗?

Thank you. 谢谢。

In general, MacPorts maintains its own versions of libraries and does not use libraries provided by Mac OS X. Reason for this is that MacPorts targets multiple releases of Mac OS X, where each release ships different libraries. 通常,MacPorts维护自己的库版本,并且不使用Mac OS X提供的库。其原因是MacPorts针对Mac OS X的多个发行版,每个发行版附带不同的库。 Additionally, Apple is known to be slow at fixing security bugs in libraries provided by Mac OS X and might change them on minor software upgrades without notice. 此外,众所周知,Apple修复Mac OS X提供的库中的安全错误的速度很慢,并且可能会在较小的软件升级时更改它们,恕不另行通知。

See also these two questions and answers in the MacPorts FAQ: 另请参阅MacPorts常见问题解答中的以下两个问题和解答:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM