Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Build Instructions for Windows 7 Using Visual Studio? #3509

Closed
@blink1073

Description

@blink1073

I recently started contributing to matplotlib and ran into a lot of problems trying to get the development version to install on my computer. I documented the process below, would you welcome a pull request against INSTALL?

Steps to build from source on Windows 7 with Microsoft Visual Studio using Anaconda:

> conda install matplotlib  # for required dependencies

For Python 2: Install Microsoft Visual C++ 2008 Express
For Python 3: Install Microsoft Visual C++ 2010 Express

Download GnuWin32 libraries:
http://gnuwin32.sourceforge.net/packages/libpng.htm
http://gnuwin32.sourceforge.net/packages/zlib.htm
http://gnuwin32.sourceforge.net/packages/freetype.htm

Rename files (assuming standard GnuWin32 install location):
C:\Program Files (x86)\GnuWin32\lib\libpng.lib -> png.lib
C:\Program Files (x86)\GnuWin32\lib\zlib.lib -> z.lib

Fix zlib zconf.h bug:
http://sourceforge.net/p/gnuwin32/bugs/169/

Save `setup.cfg.template` as `setup.cfg` (replace with your path to GnuWin32)
and make the following change:
basedirlist = C:\Program Files (x86)\GnuWin32

> pip install -e <matplotlib repository directory>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions