我目前正在为我的 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。
关于python - Pyside 安装 "Failed to find the MSVC compiler version 10.0 on your system",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38356766/