Installing PyOpenCL on Win7 64-bit with Python 3.2
by Patrick Hogg
Hello all.
I've been having some issues installing PyOpenCL on my box using Python
3.2 64-bit. I had installed it before, using Python 2.7 64-bit, using
the guide found here for Win7 64-bit, Python 2.7, VS2010, Intel OpenCL
1.5: http://wiki.tiker.net/PyOpenCL/Installation/Windows, but I wanted
to upgrade to 3.2. Sadly, the guide seems to be failing me for version
3.2. Everything blows up in my face if I try to use the git repository,
I don't even get the warning about Mako not being installed. If I
download the .tar.gz from the site, I can get it to actually start
building, but it eventually fails with the message:
...
File "C:\Python32\lib\distutils\msvc9compiler.py", line 640, in link
self.spawn([self.linker] + ld_args)
File "C:\Python32\lib\distutils\ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "C:\Python32\lib\distutils\spawn.py", line 34, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "C:\Python32\lib\distutils\spawn.py", line 67, in _spawn_nt
rc = os.spawnv(os.P_WAIT, executable, cmd)
TypeError: spawnv() arg 2 must contain only strings
As a last ditch effort, I have also tried the version found here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopencl
<http://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pyopencl>. As far as I can
tell it installs well, but when I try to use it I get the message:
Traceback (most recent call last):
File "C:\Python32\lib\site-packages\pyopencl\array.py", line 34, in
<module>
import pyopencl.elementwise as elementwise
File "C:\Python32\lib\site-packages\pyopencl\elementwise.py", line
31, in <module>
from pyopencl.tools import context_dependent_memoize
File "C:\Python32\lib\site-packages\pyopencl\tools.py", line 33, in
<module>
from decorator import decorator
ImportError: No module named decorator
Does anybody know how I could get this to work?
Thanks
7 years, 4 months