Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Matplotlib
#1
Hello,

I'm trying to install the matplotlib package using the following from the windows command prompt :-

pip install matplotlib

However I get the following errors :-
following errors


Do you know why it hasn't loaded properly ?



Here is a copy of the errors :-

ERROR: Command errored out with exit status 1:
command: 'c:\users\richardw\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\richardw\\AppData\\Local\\Temp\\pip-install-zkjb3ce_\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\richardw\\AppData\\Local\\Temp\\pip-install-zkjb3ce_\\matplotlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\richardw\AppData\Local\Temp\pip-record-vsib7v5q\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\richardw\appdata\local\programs\python\python39\Include\matplotlib'
cwd: C:\Users\richardw\AppData\Local\Temp\pip-install-zkjb3ce_\matplotlib\



error: Failed to download FreeType. Please download one of ['https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz', 'https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz'] and extract it into build\freetype-2.6.1 at the top-level of the source repository.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\richardw\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\richardw\\AppData\\Local\\Temp\\pip-install-zkjb3ce_\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\richardw\\AppData\\Local\\Temp\\pip-install-zkjb3ce_\\matplotlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\richardw\AppData\Local\Temp\pip-record-vsib7v5q\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\richardw\appdata\local\programs\python\python39\Include\matplotlib' Check the logs for full command output.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,162 Mar-11-2021, 10:52 AM
Last Post: buran
  Problem installing numpy and matplotlib achondrite 1 3,083 Jan-16-2019, 11:43 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020