I am using Ubuntu server 12.04. The default python version is 2.7. I have installed python 3.3 in /opt directory
. When I tried to create a virtualenv to use python 3.3, I get the following error:
$ virtualenv -p /opt/python3.3/bin/python3 python3_env
Running virtualenv with interpreter `/opt/python3.3/bin/python3`
Traceback (most recent call last):
File `usr/lib/python2.7/dist-packages/virtualenv.py`, line 17, in
`import zlib`
ImportError: No module named 'zlib'
How do I resolve this?