Use different Python version with virtualenv

后端 未结 30 3266
自闭症患者
自闭症患者 2020-11-21 05:03

I have a Debian system currently running with python 2.5.4. I got virtualenv properly installed, everything is working fine. Is there a possibility that I can use a virtuale

30条回答
  •  离开以前
    2020-11-21 05:33

    For Mac(High Sierra), install the virtualenv on python3 and create a virtualenv for python2:

     $ python3 -m pip install virtualenv
     $ python3 -m virtualenv --python=python2 vp27
     $ source vp27/bin/activate
     (vp27)$ python --version
     Python 2.7.14
    

提交回复
热议问题