我正在使用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的替代方法是什么?
答案 0 :(得分:1)
尝试使用
ByteArrayOutputStream out = new ByteArrayOutputStream();
GZIPOutputStream gzip = new GZIPOutputStream(out);
gzip.write(str.getBytes());
exchange.setBody(out.toString());