I'm a command line junky, so I had already installed apt-cyg. The following will outline the steps I had to do to get the packages identified above installed.
Install Python3
Installing Python3 is easy enough.$ apt-cyg install python3Now, before we attempt to install NumPy, SciPy, and MatPlotLib, we need to install a bunch of other dependencies, if they aren't already installed. These include python3-setuptools, liblapack-devel, libopenblas, gcc-fortran, gcc-g++, python-gtk2, and libfreetype-devel.
$ apt-cyg install python3-setuptools liblapack-devel libopenblas gcc-fortran gcc-g++ python-gtk2 libfreetype-develNext, we need to create a symbolic link of /usr/include/locale.h to /usr/include/xlocale.h:
$ ln -s /usr/include/locale.h /usr/include/xlocale.hFinally, we need to install pip and upgrade it. Note, if you haven't updated your PATH environment variable the following command may not work until you do that or open a new Cygwin terminal.
$ python3 -m pip install --upgrade pipNow we should be ready to install NumPy, SciPy, and MatPlotLib using pip.
Install NumPy, SciPy, and MatPlotLib
$ pip install numpy$ pip install scipy$ pip install matplotlibThat should be it.
No comments:
Post a Comment