3 ms·
> --three / --two Use Python 3/2 when creating virtualenv. I use Python 2.7, 3.4, and 3.5 on various projects. Is there a way to choose between 3.4 and 3.5 us
by helb 10y ago
> --three / --two Use Python 3/2 when creating virtualenv.
I use Python 2.7, 3.4, and 3.5 on various projects. Is there a way to choose between 3.4 and 3.5 using Pipenv? I'm using something like this with virtualenv:
$ virtualenv -p `which python3.5` .venv
- iheredia 10y agoJust a comment. Your command is equivalent to $ virtualenv -p python3.5 .venv
- emeraldd 10y agoIs that true? His command would evaluate the path at the time which is run, but yours seems to evaluate the path at the time python3.5 is run. Subtle, but very different results.
- kyrias 10y agovirtualenv resolves the interpreter when you run virtualenv, and if you specify a different interpreter with `-p` it will resolve the path to the interpreter and then run virtualenv again using it.
- jjawssd 10y agoNo, but you could be using pyenv instead of the system package manager because it is far cleaner