Search code examples
pythonpython-2.7cygwinopenclpyopencl

Can someone help walk me through installing PyOpenCL using Cygwin?


I cannot figure out how to install pyopencl with Cygwin. Never used Cygwin before so I am very lost as to how I initiate python and use it to run my .py setup files.


Solution

  • You said, you want to install pyopencl without cygwin on windows, right?

    There we go:

    In case of you need 32-Bit version, download win32 Packages.

    1. Download Python 2.7.5 Windows X86-64 Installer from http://www.python.org/download/ and install python (you rather install it in C:\Python27)

    2. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/

    3. Download numpy, scipy, pyopencl and install them

    4. Go to pypi.python.org/pypi/pytools and download pytools.

    5. Extract the file (using i.e. WinRAR) or tar (tar cxvf my.tar.gz)

    6. Open commandline aka Dos (cmd.exe) and go in cmd to the folder you have extracted pytools by using cd command

    7. Enter in cmd: python setup.py install

    8. Open Python IDLE or simply type python in cmd and type import pyopencl

    There should be no errors. If so, you did well.