我有Windows8.1机器,有两个Python安装: 3.4.4和3.2.2在python 3.4.4中一切看起来都很好
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import PySide
>>> from PySide import QtCore
>>> QtCore.__version__
'4.8.5'但是在使用3.2.2时,我得到了一个错误
Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import PySide
>>> from PySide import QtCore
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from PySide import QtCore
ImportError: DLL load failed: The specified procedure could not be found.我尝试过重新安装PySide,并添加了"C:\Qt\4.8.6\bin“,但是这些步骤并没有起到任何作用。
有趣的是,QtCore.version报告了4.8.5版本,尽管我安装了QTVersion4.8.6。
我如何让PySide也在python3.2.2上工作呢?
编辑:
我还尝试重新安装QT,这次使用Qt -opensource-windows-x86-vs2008-4.8.6.exe来自Qt主页。
发布于 2014-12-02 17:01:15
我从头到尾重新安装了所有东西(python和包),现在它似乎可以工作了。不过,这一次我使用了python版本3.2.5。我不确定是从头开始还是更新3.2 python修复了它。
https://stackoverflow.com/questions/27251968
复制相似问题