Using different versions of python with virtualenvwrapper

后端 未结 5 1897
天涯浪人
天涯浪人 2021-01-30 16:49

I\'ve got various versions of python installed on my Mac using Macports. When I\'ve selected python 2.7 via $ port select python python27, virtualenvwrapper works p

5条回答
  •  伪装坚强ぢ
    2021-01-30 17:16

    You can select the python version explicitly

    mkvirtualenv -p python3 venvname
    

    or

    mkvirtualenv -p python2.7 venvname
    

提交回复
热议问题