注册 登录
编程论坛 Python论坛

Python 安装wxPython是提示错误

穿云烈日 发布于 2023-10-16 15:38, 1016 次点击
请各位大侠帮忙看看,如何解解决:
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for wxPython
  Running setup.py clean for wxPython
Failed to build wxPython
ERROR: Could not build wheels for wxPython, which is required to install pyproject.toml-based projects
4 回复
#2
yiyanxiyin2023-10-16 15:55
看看python的版本是否支持你安装的wxPython版本
#3
穿云烈日2023-10-16 16:57
回复 2楼 yiyanxiyin
我的Python版本是这个Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

我是用这个命令去安装的  C:\Users\Tangzuojun>pip install -U wxPython
Collecting wxPython
  Using cached wxPython-4.2.1.tar.gz (73.7 MB)
#4
sheeboard2023-10-16 19:39
少其他依赖的库,看一看pyproject.toml文件里需要什么库,手动装上。
#5
穿云烈日2023-10-17 15:56
回复 2楼 yiyanxiyin
确实是版本的问题,谢谢。
1