python - Pyside 安装 "Failed to find the MSVC compiler version 10.0 on your system"

标签 python qt user-interface frameworks pyside

我目前正在为我的 python 脚本开发一个图形用户界面,并希望通过使用 PySide 来实现。

现在我无法启动和运行它。 PIP alwyas 退出并出现此错误:

nmake not found. Trying to initialize the MSVC env... 
Searching MSVC compiler version 10.0 error: Failed to find the MSVC compiler version 10.0 on your system.

我安装了以下组件: Python 3.4.4(64 位) QT 5.6/5.7 Pycharm 社区版

window 7 64 位

我可以从终端运行 PIP 和 Python,而无需 cd 进入 python 目录。所以我的 PATH 变量设置正确。

有没有人有同样的问题或者解决方案?

最佳 乔

最佳答案

PySide requires Python 2.6 or later and Qt 4.6 or better.

Qt 5.x is currently not supported.

发件人:https://pypi.python.org/pypi/PySide/1.2.4#installing-pyside-on-a-windows-system

所以也许使用 qt4.x(>=4.6) 而不是 qt5.x 可以解决您的问题。


我认为原因是你系统上的 pip 从源包安装 PySide,所以你需要一个 c/c++ 编译器。

也许你可以直接安装 PySide 二进制版本:

pip install PySide --only-binary :all:

如果它不起作用,请尝试下载“.exe”文件并运行它,而不是使用 pip。

.exe"来自:https://download.qt.io/official_releases/pyside/

关于python - Pyside 安装 "Failed to find the MSVC compiler version 10.0 on your system",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38356766/

相关文章:

python - pandas 在删除重复项时在 GroupBy 之后丢失索引

c++ - QtOpengl的演变

c++ - 德尔福到 Qt/C++ : tmemorystream

java - 带有自定义图标的简单 SWT 警报消息?

python - 有什么方法可以从 Python [Django] 进行异步函数调用吗?

python - Pycharm 不使用 Google Artifact Repository key 环,不断询问用户

python - 是否有 Hadley 的 ddply 用于 python 的实现?

c++ - 继承QTime,自定义时间格式

java - token "-"出现语法错误,AssignmentOperator 无效

android - 操作栏 : Best practice for older Android versions