我尝试在 osx mountain lion 上安装 pyside 和 python3 。
我一直在尝试
brew install pyside
但它只适用于 python2。
我还尝试使用 pyside github 代表的构建脚本。进行必要的改变
./build_and_install
然而失败了
Linking CXX shared library libpyside.cpython-33m.dylib
[ 4%] Built target pyside
[ 4%] Running generator for QtCore...
/bin/sh: /Users/einar/devel/pkg/pyside-sandbox-python3/bin/SHIBOKEN_GENERATOR-NOTFOUND: No such file or directory
make[2]: *** [PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp] Error 127
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2
我现在不知道该怎么办。我找到了这个页面皮赛德论坛 http://qt-project.org/forums/viewthread/22978建议我只需要符号链接一些东西就可以在 python3 中工作后brew install pyside
but /usr/local/Cellar/pyside/1.1.2/lib
只有名为 2.7 之类的文件。
有没有人设法让 pyside 在 osx 上与 python3 一起工作,或者知道一些关于如何做到这一点的指南?我的 google-fu 让我失望了。
这已在 Homebrew 中修复(see wiki https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python)。安装 Pyside
brew install pyside --with-python3
将为 Python 2 和 Python 3 安装它。为此,您可能必须卸载shiboken
and pyside
首先,如果它们已经安装了 Python 2。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)