virtualenvwrapper and Python 3

后端 未结 9 1985
执念已碎
执念已碎 2020-12-22 17:06

I installed python 3.3.1 on ubuntu lucid and successfully created a virtualenv as below

virtualenv envpy331 --python=/usr/local/bin/python3.3
9条回答
  •  感情败类
    2020-12-22 17:52

    You can add this to your .bash_profile or similar:

    alias mkvirtualenv3='mkvirtualenv --python=`which python3`'
    

    Then use mkvirtualenv3 instead of mkvirtualenv when you want to create a python 3 environment.

提交回复
热议问题