Allow specifying the python interpreter
Closed this issue · 3 comments
With a prefix environment to venv-mkvirtualenv
I'd like to specify which python interpreter to use. This is useful if I want to create a Python 2 virtualenv on a box where Python 3 is the default, or if I want a pypy virtualenv.
ohhh yeah good point I use that all the time too. No promises on timeline but I'll get around to adding it at some point. PRs welcome if you want to give it a go :)
I'm not sure I understand. If I do mkvirtualenv -p python3 an-env
on command line, shouldn't an M-x venv-workon
call use python3
? However, it seems C-u 3 M-x venv-workon
will use python3, so at least it is possible.
Hmm, disregard. Now M-x venv-workon
and a call to interactive gives the virtualenv's version of python. Sorry for noise.