Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
964 views
in Technique[技术] by (71.8m points)

Matplotlib ERROR: command errored out with exit status 1: python setup.py egg_info check the logs for full command output

OS: Raspbian Buster Lite (fresh install)

Hardware: Raspberry Pi 3B+

python --version: 3.9.1 (installed other than the 3.7.2 that comes pre-installed)

Hello. I had a new Raspbian Buster Lite set up yesterday. I installed Python 3.9.1 from source (pip was not previously present and was installed by Python 3.9).

I want to use this Pi remotely and work mainly with numpy and matplotlib among other packages. I am unable to install matplotlib. It gives the above mentioned error. I tried to do it after updating setuptools as well. I still get the same error. Somewhere in a GitHub forum sudo python3.9 -m pip install matplotlib worked for some users. Unfortunately, for me it did not work.

Additionally, where is the log file that the error message talks about? Where can I go and check them out "for full command output"?

I would like to mention the following, just in case it might be useful:

  • Right after Python 3.9.1 was installed python3.9 and pip3.9 were placed in /usr/local/bin/. After upgrading pip it showed the message Defaulting to user installation because normal site-packages is not writable. After that all packages are now installed to ~/.local/lib/python3.9/site-packages/.
  • The reason to mention that was after running sudo python3.9 -m pip install matplotlib it still displayed the message Warning: You are using pip version 20.2.3; hoowever 20.3.3 is available. But, I have already upgraded pip.
  • The ERROR title to this question is displayed at the last line. Before that it says two things:
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
.
.
.
subprocess.CalledProcessError: Command '['/usr/local/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpf22px6_v', '--quite', 'cppy>-1.1.0']' returned non-zero exis status 1.

The above exception was a direct cause of the following exception:

Traceback (most recent call last):
.
.
.
distutils.errors.DistutilsError: Command '['/usr/local/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpf22px6_v', '--quite', 'cppy>-1.1.0']' returned non-zero exis status 1.
ERROR: command errored out with exit status 1: python setup.py egg_info check the logs for full command output

Any help to resolve this would be really appreciated. Thanks in advance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...