Python Forum
Installing Matplotlib - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Installing Matplotlib (/thread-30881.html)



Installing Matplotlib - richard_wylde - Nov-11-2020

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.