我在 ubuntu 10.04 中安装了 python 2.7:
./configure
make
sudo make altinstall
Python 工作正常:
~$ 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.
>>>
但:
~$ 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.
怎么回事?