Pyside安装"无法在系统上找到MSVC编译器10.0版"

Joh*_*nes 3 python user-interface qt frameworks pyside

我目前正在为我的python脚本开发一个gui,并希望通过使用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.
Run Code Online (Sandbox Code Playgroud)

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

Windows 7 64位

我可以从终端运行PIP和Python,而不必进入python目录.所以我的PATH变量设置正确.

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

最好的Jo

Jin*_*ing 5

PySide需要Python 2.6或更高版本以及Qt 4.6或更高版本.

目前不支持Qt 5.x.

来自:https://pypi.python.org/pypi/PySide/1.2.4#installing-pyside-on-a-windows-system

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


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

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

pip install PySide --only-binary :all:
Run Code Online (Sandbox Code Playgroud)

如果它不起作用,请尝试下载".exe"文件,然后运行它而不是使用pip.

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