已有183人关注
安装wxPython
还有0人有此问题
发表在Python图书答疑 2022-12-13 《零基础学Python》
是否精华
版块置顶:

我在cmd 中输入命令pip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com   wxPython    为什么安装不成功 报的错误如下:

Collecting wxpython

  Downloading https://pypi.doubanio.com/packages/d9/33/b616c7ed4742be6e0d111ca375b41379607dc7cc7ac7ff6aead7a5a0bf53/wxPython-4.2.0.tar.gz (71.0 MB)

     ---------------------------------------- 71.0/71.0 MB 3.0 MB/s eta 0:00:00

  Preparing metadata (setup.py) ... error

  error: subprocess-exited-with-error


  × python setup.py egg_info did not run successfully.

  │ exit code: 1

  ╰─> [8 lines of output]

      Traceback (most recent call last):

        File "<string>", line 2, in <module>

        File "<pip-setuptools-caller>", line 34, in <module>

        File "C:\Users\47066\AppData\Local\Temp\pip-install-ahexbbc9\wxpython_269b40886a394720a3c6de31261f21f3\setup.py", line 27, in <module>

          from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName

        File "C:\Users\47066\AppData\Local\Temp\pip-install-ahexbbc9\wxpython_269b40886a394720a3c6de31261f21f3\buildtools\config.py", line 30, in <module>

          from attrdict import AttrDict

      ModuleNotFoundError: No module named 'attrdict'

      [end of output]


  note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed


× Encountered error while generating package metadata.

╰─> See above for output.


note: This is an issue with the package mentioned above, not pip.

hint: See above for details.


[notice] A new release of pip available: 22.3 -> 22.3.1

[notice] To update, run: python.exe -m pip install --upgrade pip


2022-12-13 09:29:17编辑
分享到:
精彩评论 1
小禾斗
学分:7308 LV13
TA的每日心情
奋斗
2017-04-21 14:00:25
2022-12-15
沙发

python版本是多少,查了一下,wxPython现在只支持到Python 3.10,最新的还没有出来

首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照