Install virtualenvwrapper for Python 2.7 and 3.6 simultaneously

前端 未结 1 1914
眼角桃花
眼角桃花 2021-02-10 04:00

How does one install virtualenvwrapper for both Python 2.7 and 3.6 versions? My default Python environment is Python 3.6 and

1条回答
  •  情书的邮戳
    2021-02-10 04:27

    You need only install virtualenvwrapper once. See the warning about installing on your base Python installation.

    Using Homebrew package manager install python2 and python3.

    Making a virtual environment is a matter of passing a flag.

    # make py3
    mkvirtualenv py3 --python=python3
    
    # make py2
    mkvirtualenv py2 --python=python2
    

    0 讨论(0)
提交回复
热议问题