简体   繁体   中英

no module named ConfigParser

I am trying to install port audio because my code (uses pyaudio and speechrecognition) said to build and install the port audio bindings first. Anyway, when I said pip install port audio it said this:

    ERROR: Command errored out with exit status 1:
     command: 'c:\users\stewa\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\stewa\\AppData\\Local\\Temp\\pip-install-nkbwpxww\\audio.coders\\setup.py'"'"'; __file__='"'"'C:\\Users\\stewa\\AppData\\Local\\Temp\\pip-install-nkbwpxww\\audio.coders\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\stewa\AppData\Local\Temp\pip-pip-egg-info-y8d_hj4c'
         cwd: C:\Users\stewa\AppData\Local\Temp\pip-install-nkbwpxww\audio.coders\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\stewa\AppData\Local\Temp\pip-install-nkbwpxww\audio.coders\setup.py", line 5, in <module>
        import ConfigParser
    ModuleNotFoundError: No module named 'ConfigParser'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I says no module named ConfigParser do you know what i should do. If it is any help im using python 3.8.5 and windows 10 thanks

The package is most probably not python-3 compatible.

As stated in this answer ConfigParser has been renamed to config-parser in python-3. You might want to consider either running it via python-2 (not recommended since it's deprecated) or use another updated package (if available)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM