We're not able to install pyaudio,openai,etc modules in latest version of python .Please help me to resolve this

    File "C:\Users\dtoha\AppData\Local\Temp\pip-build-env-3bp0yfzi\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module>
      import pkg_resources
    File "C:\Users\dtoha\AppData\Local\Temp\pip-build-env-3bp0yfzi\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2191, in <module>
      register_finder(pkgutil.ImpImporter, find_on_path)
                      ^^^^^^^^^^^^^^^^^^^
  AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
  [end of output]

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

Ă— Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

1 Like

Specifically what “latest” version are you referring too?
If 3.12 it is often the case that it takes some time after a python release for packages that support it to be uploaded to PyPI.

Suggest you use the latest 3.11 unless you have a need to use 3.12.

1 Like

Which means you will need to confirm that all the packages you require (and all of their dependencies) are compatible with Python 3.12. Ideally the PyPI metadata for those package would include the “Python 3.12” classifier, but you can’t depend on that classifier existing.

python3.12 -m pip install --upgrade setuptools
solved that problem for me. Good luck.

1 Like

Upgrade setuptools and try again

1 Like