简体   繁体   English

PySide错误:无法链接QtCore

[英]PySide error: not able to link QtCore

I am getting the below error when trying to run my pyside program: When I try to use pip to reinstall PySide, I get the below error: 尝试运行pyside程序时出现以下错误:当我尝试使用pip重新安装PySide时,出现以下错误:

** Traceback (most recent call last): **回溯(最近一次通话结束):

  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**

When I try to check my PySide.__version__ it gives me a segmentation fault:11 当我尝试检查我的PySide.__version__时,出现分段错误:11

I have checked several solutions available online but none seems to be working here. 我已经检查了几种在线可用的解决方案,但似乎没有一个在这里工作。 :

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.

On Mac OS X, due to difficulties in compiling, don't try to use a PIP installation and try the pre-built binaries from here: 在Mac OS X上,由于编译困难,请勿尝试使用PIP安装并从此处尝试预构建的二进制文件:

http://wiki.qt.io/PySide_Binaries_MacOSX http://wiki.qt.io/PySide_Binaries_MacOSX

It has been confirmed to work for Mavericks. 已经确认可以为小牛队工作。

You can also use brew or Macports, but I would not rely on pip: http://pythoncentral.io/install-pyside-pyqt-on-windows-mac-linux/ 您也可以使用brew或Macports,但我不会依赖pip: http : //pythoncentral.io/install-pyside-pyqt-on-windows-mac-linux/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM