0

I have installed python 2.7 in ubuntu 10.04:

./configure
make
sudo make altinstall

Python works properly:

~$ python2.7
Python 2.7 (r27:82500, Mar  6 2013, 15:39:19)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

But:

~$ virtualenv -p python2.7 ~/virtualenv/python27
Running virtualenv with interpreter /usr/local/bin/python2.7
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 1378, in <module>
    """.decode("base64").decode("zlib")
LookupError: unknown encoding: zlib.

WTF?

2
  • 2
    Did that make return a line telling you it couldn't find the bits needs to make certain libraries, one of which is zlib? Commented Mar 6, 2013 at 15:17
  • possible duplicate of no module named zlib Commented Mar 6, 2013 at 15:18

1 Answer 1

1

You are using virtualenv of the 2.6 python: check your lines:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/virtualenv.py"

Do you have virtualenv installed in the python2.7? normally is named virtualenv2.7 if you have both.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.