如何在 Windows 上安装 PySide 的步骤
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3686259/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Steps on howto install PySide on windows
提问by Forested
I followed what they said at pyside.org but somehow i can't get it to work. I downloaded the two files that they are linking from their site (qt libraries and pyside for python 2.6)
我遵循了他们在 pyside.org 上所说的,但不知何故我无法让它工作。我从他们的站点下载了他们链接的两个文件(qt 库和 pyside for python 2.6)
When I try one of their examples I get the following message:
当我尝试他们的示例之一时,我收到以下消息:
Traceback (most recent call last):
File "2dpainting.py", line 28, in <module>
from PySide.QtCore import *
ImportError: DLL load failed: The specified module could not be found.
I use python 2.6.4 and windows 7
我使用 python 2.6.4 和 windows 7
采纳答案by Mark
You need to add the QT bin directory ("C:\Qt\4.6.3\bin") to your path environment variable.
您需要将 QT bin 目录(“C:\Qt\4.6.3\bin”)添加到您的路径环境变量中。
回答by anatoly techtonik
The situation with Windows binaries significantly improved in 1.0.0 release. Try newer installers from downloads page.
回答by Qoros
There is a similar question on Installing PySide - Windows 8
在安装 PySide - Windows 8上有一个类似的问题
You can simple use
你可以简单的使用
pip install PySide
to install it.
安装它。