Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/ Questions/Q 82
Next
Answered
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 0
Kenil Vasani
Asked: November 19, 20202020-11-19T06:52:17+00:00 2020-11-19T06:52:17+00:00In: Python

Python, Error while installing matplotlib

  • 0

OS: Windows 10

Python ver: 3.9.0

Error code:

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

I tried:

python -m pip install -U pip
python -m pip install -U matplotlib

didn’t work.

and then I tried:

pip install --upgrade setuptools

didn’t solve the problem.

I read on SO that maybe if I open the shell in administrator mode it could solve the problem but it didn’t work too.

I saw someone mentioning ez-setup for this error code. I installed it but that didn’t work too.

I don’t know if it has something to do but my C directory looks like this:

C:\Users\METİNUSTA

It has an uppercase i character which sometimes can cause problems with applications. I can’t change it because I am using my school’s Windows key and it don’t let me do any change. Because of this I installed python on D: .

Also here my pip list for extra information:

ez-setup    0.9
flake8      3.8.4
mccabe      0.6.1
pip         20.2.4
pycodestyle 2.6.0
pyflakes    2.2.0
setuptools  50.3.2
wheel       0.35.1

and finally whole error log that I get on windows powershell:

matplotlibpippython
  • 2 2 Answers
  • 24 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    2 Answers

    • Voted
    1. Kenil Vasani

      Kenil Vasani

      • 646 Questions
      • 567 Answers
      • 77 Best Answers
      • 26 Points
      View Profile
      Best Answer
      Kenil Vasani
      2020-11-19T06:52:28+00:00Added an answer on November 19, 2020 at 6:52 am
      1. “python -m pip install –upgrade pip”
      2. “pip install matplotlib==3.3.1”

      Worked for me.

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Kenil Vasani

      Kenil Vasani

      • 646 Questions
      • 567 Answers
      • 77 Best Answers
      • 26 Points
      View Profile
      Kenil Vasani
      2020-11-19T06:52:22+00:00Added an answer on November 19, 2020 at 6:52 am

      matplotlib hasn’t made a wheel yet for version 3.9 so your python attempted to build it from source. You should downgrade to python 3.8 and then everything should work

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    You must login to add an answer.

    Forgot Password?

    Sidebar

    Ask A Question
    • Popular
    • Kenil Vasani

      SyntaxError: invalid syntax to repo init in the AOSP code

      • 5 Answers
    • Kenil Vasani

      xlrd.biffh.XLRDError: Excel xlsx file; not supported

      • 3 Answers
    • Kenil Vasani

      Homebrew fails on MacOS Big Sur

      • 3 Answers
    • Kenil Vasani

      runtimeError: package fails to pass a sanity check for numpy ...

      • 3 Answers
    • Kenil Vasani

      Python, Error while installing matplotlib

      • 2 Answers

    Explore

    • Most Answered
    • Most Visited
    • Most Voted
    • Random

    © 2020-2021 ErrorCorner. All Rights Reserved
    by ErrorCorner.com