无法在macOS上安装PyGObject

时间:2017-09-12 07:08:52

标签: python macos gtk gtk3 pygobject

我正在使用macOS
Python版本:2.7 / 3.6

pip3:

$ pip3 install PyGObject
Collecting PyGObject
Could not find a version that satisfies the requirement PyGObject (from versions:)
No matching distribution found for PyGObject

pip和pip2.x的结果相同

为什么我找不到它?
在macOS上安装PyGObject的替代方法是什么?

1 个答案:

答案 0 :(得分:1)

尝试使用

ByteArrayOutputStream out = new ByteArrayOutputStream();
GZIPOutputStream gzip = new GZIPOutputStream(out);
gzip.write(str.getBytes());
exchange.setBody(out.toString());