在mac osx上安装python模块(qpid proton)

时间:2015-05-11 08:02:36

标签: python macos pip qpid

我是python编程的新手,在安装模块时遇到一些困难。我在mac上安装了python的mysql连接器,工作得很好。现在我试图在mac http://www.primefaces.org/elite/license.xhtml上安装qpid质子。

Qpid没有像mysql这样的安装程序,所以我必须手动安装它。文件确实缺乏。我已经搜索了SO但是easy_install或pip就像这里描述的似乎对我不起作用。 http://qpid.apache.org/proton/

“PIP安装质子”仅安装部分库,如此处所述What is the most compatible way to install python modules on a Mac?

如何在mac上安装此库?

2 个答案:

答案 0 :(得分:1)

如果你仍然关心python-qpid-proton现在在pypi:https://pypi.python.org/pypi/python-qpid-proton

所以只需运行

pip install python-qpid-proton

在Mac上,您可能在安装过​​程中遇到问题以查找openssl库。 使用brew首先安装openssl:

brew install openssl

然后brew提供了一个提示:

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

LDFLAGS:  -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

所以只需导出这些env vars并重新运行你最喜欢的pip安装(或者更好以避免在将来添加以下内容中添加〜/ .bash_profile:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

这对我来说就像一个魅力!

答案 1 :(得分:0)

看看这个:http://svn.apache.org/repos/asf/qpid/branches/0.20/qpid/python/README.txt

我认为如果你下载这个:https://qpid.apache.org/releases/qpid-proton-0.9.1/index.html,你只需要在项目中包含该文件,不要安装任何东西。只需使用它!

相关问题