Homebrew で python2 と python3 をインストールしました。virtualenv を使用したいのですが、python2/python3 の両方にインストールする必要があるかどうかわかりません。また、必要に応じて VIRTUALENVWRAPPER_PYTHON を python2 または python3 に設定できますか?
どんな助けでも大歓迎です。
ありがとう、グレッグ
Homebrew で python2 と python3 をインストールしました。virtualenv を使用したいのですが、python2/python3 の両方にインストールする必要があるかどうかわかりません。また、必要に応じて VIRTUALENVWRAPPER_PYTHON を python2 または python3 に設定できますか?
どんな助けでも大歓迎です。
ありがとう、グレッグ
According to this SO question, you could use a single virtualenv
for both version, just use the -p path/to/python/version
or --python=path/to/version
flag to specify which version to use for the creation of the virtual environment. Note that you can use the same flag with mkvirtualenv
.
This post recommends to just use the system Python (2.7 in your case) to install virtualenv
itself.