how to install Matplotlib on Cygwin?

后端 未结 3 921
一向
一向 2020-12-29 10:33

I\'m trying to install Matplotlib 1.0.1 version on latest Cygwin. In the processing, there is a weird fork error cannot be solved. I googled similar questions and found that

3条回答
  •  一个人的身影
    2020-12-29 11:25

    These steps taken from www.scivision.co worked for me:

    1. Run Cygwin setup: (For some reason the original command posted in the source link did not work for me)
    2. install packages: (most of these you may already have)

      • pkg-config
      • ghostscript
      • libfreetype-devel
      • libpng-devel
      • libgtk2.0-devel
      • gcc-g++
      • git
      • openbox
      • python3-numpy
      • python3-pyqt5
      • python3-devel
    3. Then from Cygwin Terminal:

    easy_install-3.6 pip pip install --upgrade six pip install matplotlib

    1. Then tested from python console:

    import matplotlib matplotlib.__version__

提交回复
热议问题