Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xtrlkujj/pyaudio/
15,978
Solution 1
Try run first:
pip3 install --upgrade setuptools
to make sure you have the recent version from the Setuptools package. That sometimes fixes that problem.
And if pip needs setup tools to work. So if you don't have it you need to install it with
apt-get install python3-setuptools
Solution 2
$ pip3 --upgrade setuptools
Usage:
pip3 <command> [options]
no such option: --upgrade
Then I use this from this web
$ sudo apt install python3-pyqt5
Related videos on Youtube
Author by
夏思阳
Updated on June 04, 2022Comments
-
夏思阳 almost 2 years
I am trying to balena push a Dockerfile. After several adjustments of my code, it still comes with error and unable to be pushed. My code is shown:
FROM balenalib/fincm3-debian-python:latest # RUN install_packages git RUN apt-get update RUN apt-get install python -y\ && apt-get install python3-pip -y RUN apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev -y RUN pip3 install pyaudio numpy matplotlib \ scipy librosa # Set our working directory WORKDIR /usr/src/app COPY Recorder.py /usr/src/app # Recorder.py will run when the container starts up on the device CMD ["python","/usr/src/app/Recorder.py"]
And the error :
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xtrlkujj/pyaudio/
-
anthony sottile about 4 yearsyou'll need to paste more, the error is above the output line you pasted
-
夏思阳 about 4 years@AnthonySottile
Step 5/8 : RUN pip3 install pyaudio numpy matplotlib scipy librosa [main] Collecting pyaudio [main] Complete output from command python setup.py egg_info: [main] Traceback (most recent call last): [main] File "<string>", line 1, in <module> [main] ModuleNotFoundError: No module named 'setuptools'- [main] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3vpz6pbo/pyaudio/ [main] The command '/bin/sh -c pip3 install pyaudio numpy matplotlib scipy librosa' returned a non-zero code: 1
-
anthony sottile about 4 yearsyou're missing
python3-setuptools
-
-
夏思阳 about 4 yearsI tried, it comes with same error with
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3vpz6pbo/pyaudio/
-
ex4 about 4 yearsIn that case, try to install
python3-setuptools
with apt.apt-get install python3-setuptools
-
夏思阳 about 4 yearsyes it is solved. But it comes with another error that ` Failed building wheel for pyaudio` and
Failed building wheel for llvmlite
-
Mr.Young over 3 years@夏思阳 Did you figure out a fix for this? I'm having the same issue.
-
夏思阳 over 3 years@Mr.Young Yes, you can try with
RUN apt-get update
at each line instead of connecting with '&&' -
Mr.Young over 3 years@夏思阳 Thanks. I ended up installing Anaconda and then everything worked out fine.
-
alper over 3 years
no such option: --upgrade
-
maurera about 3 yearsYou're missing the
install''. It should be
pip3 install --upgrade setuptools`` (otherwise error "no such option: --upgrade")