Closed gziras-in closed 2 years ago
The C compiler needs be available in the path, and you'll need to have Python.h (and other relevant headers) installed. As you noted, this is likely a duplicate of #125.
yum install python-devel
installed the necessary headers and then it worked.
Thank you!
Hello,
In a centos 7 server I try to run the following code.
Trying to execute the above program I get: cPickle.PicklingError: Can't pickle <type 'function'>: attribute lookup builtin.function failed
Traceback (most recent call last): File "multi.py", line 14, in
print(p.map(f, range(4)))
File "lib/python/pathos-0.2.9.dev0-py2.7.egg/pathos/multiprocessing.py", line 139, in map
return _pool.map(star(f), zip(*args)) # chunksize
File "lib/python/multiprocess-0.70.12.2-py2.7.egg/multiprocess/pool.py", line 253, in map
return self.map_async(func, iterable, chunksize).get()
File "lib/python/multiprocess-0.70.12.2-py2.7.egg/multiprocess/pool.py", line 572, in get
raise self._value
cPickle.PicklingError: Can't pickle <type 'function'>: attribute lookup builtin.function failed
My stack:
By trying to install multiprocess I got also this warning.
But I have this: $ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Should I set an environment variable so that the compiler can be found?
Could you assist me with the above issue?