安装 PySide - Windows 8 [英] Installing PySide - Windows 8

查看:70
本文介绍了安装 PySide - Windows 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循以下说明:

http://qt-project.org/wiki/Setting_up_PySide

已成功安装这些程序:

  • PySide-1.1.2.win-amd64-py2.7.exe -
  • qt-win-opensource-4.8.4-vs2010.exe - 适用于 Windows 的 Qt 库 4.8.4(VS 2010,234 MB)

尝试了以下操作,但出现错误:

Tried the following and got an error:

PS C:\Windows\system32> python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PySide
>>> print(PySide.QtCore.__version__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'QtCore'

我正在运行 Windows 8(64 位).我以管理员身份从 powershell 运行了上面的命令.

I am running windows 8 (64 bit). I ran the commands above from powershell as Administrator.

推荐答案

PySide 现在可以在 pip 上使用,您可以使用 pip 命令简单地安装它

PySide is available on pip now, you can simply install it by using pip command

pip install PySide

Python 安装程序 2.7.9 及更高版本(在 python2 系列上)和 Python 3.4 及更高版本默认包含 pip(Python 3 为 pip3).但请记住在命令行窗口 (Windows+R) 中运行之前将其添加到PATH"环境变量中.Python 安装

Python Installer after 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default. But remember to add it to the 'PATH' environment variable before you run it in a command line window (Windows+R).Python Install

C:\Python27\;C:\Python27\Scripts\

这篇关于安装 PySide - Windows 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆