Getting Python Interpreter to use the activated VirtualEnv

May 1, 2013 at 12:58 PM
I'm using Python Tools for Visual Studio 2012 v2 alpha. I've added and activated a Virtual Environment. If I then open the 'Python 2.7 Interactive' window and check the Python that's running, I get the following:
>>> import sys
>>> sys.executable
'C:\\Python27\\python.exe'
What I'd like to see is the following:
>>> import sys
>>> sys.executable
'<path_to_my_virtual_env\\Scripts\python.exe'
i.e. I'd like it to use the activated Python virtualenv instead. But it doesn't. Should it? If not, is there any chance this will become a feature?
Coordinator
May 1, 2013 at 3:18 PM
It doesn't right now, but we've got quite a bit of work to do on our virtualenv support. I'll make a work item for this and we'll see if we can get it in.
Coordinator
May 1, 2013 at 3:19 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.