Windows 10 64位
我在python3.52中通过pip成功安装了traitsui
必须安装Qt4才能在Windows上显示GUI,但是python Qt4支持的最高版本是python3.4
所以,当我尝试通过pip安装特征时,我安装了python3.4
我收到错误消息:
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
我搜索错误消息,得到了一些结果,但是没有一个解决问题,所以我安装了mingw
使用pip再次安装特征,得到另一个错误
collect2.exe: error: ld returned 1 exit status
error: command 'D:\\Program Files\\mingw-w64\\x86_64-5.3.0-win32-seh-rt_v4-rev0\\mingw64\\bin\\gcc.exe' failed with exit status 1
有没有办法在python 3.4的Windows上安装特征?
通过以的形式安装软件包的预编译版本,可以避免Visual Studio C ++的错误问题wheel
。您可以在此处找到wheel
大多数常用模块的软件包。
下载文件traits-4.6.0.dev0-cp34-cp34m-win32.whl
(cp34
表示Python 3.4,win32
说明您的Python是32位的),并使用命令行进行安装:
pip install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
确保将pip
其链接到您的Python 3.4点。如果不确定,可以pip.exe
通过在命令行(cd C:\Python34\Scripts
)中更改目录并运行来直接运行
pip.exe install C:\whereveryourfileis\traits-4.6.0.dev0-cp34-cp34m-win32.whl
编辑:您考虑使用Qt5
吗?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句