7

Homebrew で python2 と python3 をインストールしました。virtualenv を使用したいのですが、python2/python3 の両方にインストールする必要があるかどうかわかりません。また、必要に応じて VIRTUALENVWRAPPER_PYTHON を python2 または python3 に設定できますか?

どんな助けでも大歓迎です。

ありがとう、グレッグ

4

1 に答える 1

15

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.

于 2012-09-24T14:15:06.150 に答える