次の方法で共有


Getting Started with PTVS: Setting up Visual Studio

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Installing PTVS and related libraries is quick if you have Visual Studio. If you do not have Visual Studio, you can get a free copy of a professional quality version.

You can watch these instructions in a very short youtube video.

The high level steps are as follows: install Visual Studio, install PTVS, install Python and data libraries (Anaconda, Canopy), and then finally to check the installation.

The first thing you'll need is Visual Studio. If you're an open-source or individual developer, you can use Visual Studio Community Edition, which is free and functional for professionals. You can also use the Community Edition in an organization as long as it is for classroom learning, academic research, or contributing to open-source projects. Students and startups should look into DreamSpark and BizSpark programs to see if you're eligible for free access, or ask your employer whether you have an MSDN subscription.

Once you've installed Visual Studio, you'll need to install PTVS. This is a free, standalone extension that's fully supported by Microsoft and developed openly with contributions from the community.

Now you need to install Python. Python is maintained by the community, and its home page is python.org. Continuum Analytics produces a free bundle called Anaconda that has Python and many useful libraries (especially for science and data processing), and Enthought produces a similar bundle named Canopy. You only need to install one of these products. If you're not sure which one, start with Anaconda, which gives you the most up-to-date Python and most of the difficult-to-install packages.

Start Visual Studio and make sure everything is working. Under the View menu, choose Other Windows. You see an item called Python Environments. This window shows all of the Python installations PTVS detected and all of the packages you have installed. The window also controls the database refresh for showing completions when you are editing code. This refresh process takes some time, but once it's done PTVS can show more helpful information about packages.

If you want to use IPython with PTVS, follow these instructions.

You can watch these instructions in a short youtube video.

See Also

PTVS Getting Started and Deep Dive Videos