-1

I got some error when install matplotlib with command pip install matplotlib in Visual Studio Code. This is an error status

Running setup.py install for matplotlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\lenovo\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-ebe54zpw\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-ebe54zpw\\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\Lenovo\AppData\Local\Temp\pip-record-r6a9f5rh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\lenovo\appdata\local\programs\python\python39\Include\matplotlib'
         cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-ebe54zpw\matplotlib\
    .
    .
    .
    UPDATING build\lib.win32-3.9\matplotlib\_version.py
    set build\lib.win32-3.9\matplotlib\_version.py to '3.3.2'
    running build_ext
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    Extracting freetype-2.6.1.tar.gz
    Building freetype in build\freetype-2.6.1
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\lenovo\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-ebe54zpw\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-ebe54zpw\\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\Lenovo\AppData\Local\Temp\pip-record-r6a9f5rh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\lenovo\appdata\local\programs\python\python39\Include\matplotlib' Check the logs for full command output.

Hope to get a solution, thank u..

  • https://stackoverflow.com/search?tab=newest&q=%5bmatplotlib%5d%20error%3a%20Microsoft%20Visual%20C%2b%2b%2014.0%20is%20required – phd Nov 04 '20 at 14:11

1 Answers1

1

As you can see here;

error: Microsoft Visual C++ 14.0 is required

This is your problem.

Myota
  • 48
  • 5