Python Tools for Visual Studio (PTVS)

Python Tools for Visual Studio is a free, open source plugin that turns Visual Studio into a Python IDE.

If you have installed Anaconda as your default Python installation and installed PTVS, your Visual Studio installation is already set to use Anaconda’s Python interpreter in PTVS.

To verify this, create a new Python project, and then check whether Anaconda is the Python that it uses.

To create a new Python project:

  1. In the File menu, select New, and then select Project. The keyboard shortcut is Ctrl-Shift-N.

  2. Select Python Application:


To check which Python the project uses:

  1. From the Tools menu, select Python Tools, and then select Python Interactive. The keyboard shortcut is Alt+I:


  2. In the Python Interactive window, type import sys, and then press Enter.

  3. Type sys.version, and then press Enter.

If PTVS is using Anaconda, your Anaconda Python version is displayed. In the example below, it is Anaconda 1.5.0 (64-bit):


If PTVS does not automatically discover Anaconda, see the official PTVS documentation, especially the section on Selecting and Installing Python Interpreters and the PTVS installation instructions.

Was this helpful?