Which Python interpreter should I install?

PTVS does not come with a Python interpreter – in order to run your code, you need one. So let’s install one!

Fortunately there are several choices and they’re all free:

CPython – this is the “native” and most commonly used interpreter.


  • Most commonly used, available in 32 and 64 bit versions.
  • Latest language features
  • Maximum Python package compatibility
  • Best debugging experience in PTVS (eg debug on Linux/Mac, Python/C++ debugging)
  • Works with IPython
  • Versions: 2.7 (frozen) and 3.3 (latest)

If you’ve already installed VS and PTVS, we recommend the latest 32-bit CPython (installer) from www.python.org. Once CPython is installed, it will be auto-detected by PTVS.  If you want more information about the differences between Python 2.x versions and 3.x versions, please visit http://wiki.python.org/moin/Python2orPython3.

IronPython – this is a .NET implementation of Python


  • Best .NET (C#/F#/…) interop, available in 32 and 64 bit versions.
  • Versions: 2.7.4 (3.x features underway)
  • Some non-.NET packages can be used via bridges, and others have been ported 
  • Standard Python debugging (no mixed .NET/Native debugging)
  • No IPython support
  • Decent mixed IronPython <-> C# debugging

If you’ve already installed VS and PTVS, we recommend the 2.7.4 version. This will run an MSI from http://ironpython.codeplex.com which will install Python and will be auto-detected by PTVS.

PyPy – this is a high performance tracing JIT implementation of Python: www.pypy.org.

Jython – Like IronPython, this is an implementation of Python on the JVM: www.jython.org.

Both PyPy and Jython can be used with PTVS (edit, IntelliSense, etc.) but various advanced debugging features may not work.


Canopy and Anaconda – both of these distros will also be automatically discovered and added to your list of Python Environments.


Hey, I already have an interpreter on my machine, but PTVS doesn’t seem to know about it!

Alright, let’s fix that! Normally PTVS can locate an installed Interpreter by checking the registry, but if it’s installed in a non-standard fashion, you can directly tell PTVS about it:

1. Go to Tools/Options/Python Tools and choose “Environment Options”.  Click “Add Environment” and add a string that describes it:


3. Enter the Path to the location of your interpreter manually or by clicking “…”:


Here we’ve entered “C:\Python27_x64\python.exe” as the path. The Windows Path is the path to the “Pythonw.exe” version, generally found in the same directory. Architecture is automatically detected and filled in for you. Language version can be selected from the drop down menu.

Path Environment Variable is the ENV variable that the interpreter will look at to find search paths. PTVS sets it when running within VS, and overwrites any global value. It’s typically set to “PYTHONPATH".

You can view another environment’s settings by clicking Show settings for, and delete ones you have added with Remove Environment.

4. When you have interpreters installed, you can manage them easily via the Interpreters Window. Go to Tools/Python Tools/Interpreters (or Ctrl+K, ` --- Control+K, back-tick):


Here we see that there are several Interpreters installed, including Enthought’s Canopy.   We’ve made CPython 2.7 the current default.   We’ve created a Virtual Environment using CPython 2.7 and its database is currently being refreshed because of an added package.  You can quickly modify each interpreter’s attributes by clicking the Interpreter Options link.


Interpreter databases are used to improve IntelliSense speed for the standard library and any libraries installed into site-packages. Analyzing all of the available source files can take anywhere from a minute to an hour or more, depending on what you have installed. However, once complete, you will get detailed IntelliSense and won't have to refresh the database again until you install more libraries.

Last edited Jun 23, 2014 at 11:45 PM by ptools, version 11


pminaev Jan 7, 2015 at 4:52 PM 
Lordearon: we don't have any remote launching functionality currently, except for HPC. It's not clear how this would work in general (i.e. how to remotely launch Python on an arbitrary machine, not knowing the OS etc). We have thought about some more narrow scenarios, such as launching it over SSH on Unix-like systems, but there aren't any specific plans yet. If you can file a feature request with your scenarios, it would certainly help, as we're still in feature design & prioritization phase for the next release!

Note that if you can wrap your remote interpreter into some local binary or script that accepts the same launch parameters as python.exe, and handles all the actual remoting from there on, you can register it as a custom interpreter, and it should work. The tricky part for it would be detecting PTVS debugger bits and putting it on the remote machine, though that can also be done manually in advance.

pminaev Jan 7, 2015 at 4:49 PM 
If an environment wasn't manually created but appeared there automatically, then it's a Python install that added itself to the registry, and PTVS found it there. If you just delete the files, the registry keys will remain. You can manually delete them - they're at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore, look for your corresponding Python version. If it's 64-bit Python, drop Wow6432Node in the above registry path,

Lordearon Jan 7, 2015 at 8:25 AM 
is it possible to use a remote python interpreter?
how about a containerized python interpreter? I'm using docker and get an interpreter with docker exec

Amorano Oct 27, 2014 at 6:16 PM 
How do you remove an environment? I have one that is greyed out, does not exist at the path it is setup to point at, and I see no way to remove it