首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PySide错误:无法链接QtCore

PySide错误:无法链接QtCore
EN

Stack Overflow用户
提问于 2015-09-10 00:23:19
回答 1查看 554关注 0票数 0

当我尝试运行我的PySide程序时,我得到了下面的错误:当我尝试使用pip重新安装pyside时,我得到了下面的错误:

**回溯(最近一次调用):

代码语言:javascript
复制
  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

我已经在网上检查了几个可用的解决方案,但似乎没有一个在这里有效。:

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 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/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32484744

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档