Error trying to pip install

“no module named ‘attrdict’”
Collecting wxPython
Using cached wxPython-4.2.0.tar.gz (71.0 MB)
Preparing metadata ( … error
error: subprocess-exited-with-error

× python egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:\Users\Administrator\AppData\Local\Temp\pip-install-vfbx0zte\wxpython_3983dc2f2bde4342a70a2197dc750b95\”, line 27, in
from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName
File “C:\Users\Administrator\AppData\Local\Temp\pip-install-vfbx0zte\wxpython_3983dc2f2bde4342a70a2197dc750b95\buildtools\”, line 30, in
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.