我在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