当我尝试运行我的PySide程序时,我得到了下面的错误:当我尝试使用pip重新安装pyside时,我得到了下面的错误:
**回溯(最近一次调用):
File "myfirstpython.py", line 3, in <module>
from PySide.QtCore import Qt
ImportError: dlopen(/Library/Python/2.7/site-packages/PySide/QtCore.so, 2): Symbol not found: __PyTrash_thread_deposit_object
Referenced from: /usr/lib/libshiboken-python2.7.1.2.dylib
Expected in: flat namespace
in /usr/lib/libshiboken-python2.7.1.2.dylib**当我尝试检查我的PySide.__version__时,它给我一个分段错误:11
我已经在网上检查了几个可用的解决方案,但似乎没有一个在这里有效。:
Collecting PySide
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement PySide (from versions: )
No matching distribution found for PySide
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.发布于 2015-09-10 09:15:26
在Mac OS X上,由于编译困难,请不要尝试使用PIP安装,并从此处尝试预先构建的二进制文件:
http://wiki.qt.io/PySide_Binaries_MacOSX
它已经被证实对小牛队有效。
您也可以使用brew或Macports,但我不会依赖pip:http://pythoncentral.io/install-pyside-pyqt-on-windows-mac-linux/
https://stackoverflow.com/questions/32484744
复制相似问题