Virtualenv no module named zlib

前端 未结 2 730
栀梦
栀梦 2021-02-05 16:44

I\'m trying to create Python 2.7 virtual env under Python2.6, I\'m simply running:

virtualenv --python=python27 #python27 correctly leads to my python installati         


        
2条回答
  •  攒了一身酷
    2021-02-05 17:35

    zlib is a Python module that interfaces with the zlib library on your computer. It is part of the standard library, so it should be on all Python 2.7 installs.

    If it's not, in your case, then that likely means that your version of Python was compiled without zlib support for some reason. I can't imagine why, unless it's related to something you did to enable the use of older versions of zlib. I think you will need to find another Python package, or compile Python yourself.

提交回复
热议问题