0
我已經在Ubuntu 10.04安裝Python 2.7版:的virtualenv在Python 2.7,Ubuntu的10.04
./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.
跆拳道?
這個'make'是否返回一行告訴你找不到需要創建特定庫的位,其中之一是zlib? – geoffspear 2013-03-06 15:17:07
[no modules named zlib](http://stackoverflow.com/questions/6169522/no-module-named-zlib) – geoffspear 2013-03-06 15:18:19