> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Python Tools for Visual Studio

export const PdfDownload = ({href, children = "Download PDF"}) => <a href={href} download className="preview-button text-sm font-medium rounded-full px-3.5 py-1.5 not-prose focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600">
    {children}
  </a>;

<Badge shape="pill" stroke color="yellow" icon="triangle-exclamation">Deprecated</Badge>

<Note>
  This page is no longer maintained, and may be out of date. It will be removed on September 30, 2026. To download a PDF copy of this page for your reference, click the **Download PDF** button below.
</Note>

<PdfDownload href="/docs/pdfs/python-ptvs.pdf" />

[Python Tools for Visual Studio](https://github.com/microsoft/PTVS/) 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.

<Note>
  These instructions refer to Anaconda Distribution exclusively, but will also work with Miniconda.
</Note>

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:

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/hMeu-8dEYFekrhE_/images/PTVS_newproj.png?fit=max&auto=format&n=hMeu-8dEYFekrhE_&q=85&s=fb45381dcf43490f80f2bfeb2d3a36f5" alt="" width="815" height="576" data-path="images/PTVS_newproj.png" />
   </Frame>

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:

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/hMeu-8dEYFekrhE_/images/PTVS_pythoninteractive1.png?fit=max&auto=format&n=hMeu-8dEYFekrhE_&q=85&s=cc556f093cadd465432aad8cacedbcef" alt="" width="674" height="480" data-path="images/PTVS_pythoninteractive1.png" />
   </Frame>

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):

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/hMeu-8dEYFekrhE_/images/PTVS_pythoninteractive2.png?fit=max&auto=format&n=hMeu-8dEYFekrhE_&q=85&s=d1424b8b9c4efe134803ef13d6610981" alt="" width="693" height="157" data-path="images/PTVS_pythoninteractive2.png" />
</Frame>

If PTVS does not automatically discover Anaconda, see the [official PTVS
documentation](https://docs.microsoft.com/en-us/visualstudio/python/python-in-visual-studio), especially the
section on [Selecting and Installing Python Interpreters](https://docs.microsoft.com/en-us/visualstudio/python/python-environments#selecting-and-installing-python-interpreters)
and the [PTVS installation instructions](https://docs.microsoft.com/en-us/visualstudio/python/installation).
