I use Ubuntu and installed Python 2.7.5 and 3.4.0. In Python 2.7.5, I can successfully assign the variable x = Value('i', 2) , but not in 3.4.0. I get:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.4/multiprocessing/context.py", line 132, in Value from .sharedctypes import Value File "/usr/local/lib/python3.4/multiprocessing/sharedctypes.py", line 10, in < module> import ctypes File "/usr/local/lib/python3.4/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: No module named '_ctypes'
I just upgraded to 3.3.2 through the installation of the 3.4.0 source. It is installed in /usr/local/lib/python3.4.
Am I upgrading correctly to Python 3.4?
I noticed that Python 3.4 is installed in usr / local / lib, and Python 3.3.2 is still installed in usr / lib, so it has not been overwritten.
source share