vs2015运行python程序_Getting Started with Python

Getting Started with Python

11/15/2016

3 分钟可看完

kraigb.png?size=32

jesong.png?size=32

本文内容

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 Visual Studio 2019. Download it here

The Python Tools for Visual Studio (PTVS), is a free, open-source plug-in for Visual Studio that a powerful Python development experience.

Python the Language

Python is a popular programming language that is used by many universities, scientists, app scripters, casual developers, and professional developers, working on applications, web sites, and cloud services.

As a programming language, Python is:

Reliable.

Generally useful for scripting quick programs, app scripting, desktop apps, web servers, web services, and scientific computing.

Easy to learn and has a good design to encourage good coding (many universities use it for introductory programming courses).

Flexible, supporting imperative, functional, and object-oriented programming styles.

Free and open source.

Runs well on all major operating systems.

Supported by many free, useful, and well-designed libraries.

Supported by lots of documentation, samples, and a strong developer community.

To learn more about the language, start with Python for Beginners on python.org.

To install Python itself, visit https://www.python.org/download/.

Python Tools for Visual Studio

The Python Tools for Visual Studio, which you can install from visualstudio.com, provide the following features:

Support for multiple interpreters: various versions of CPython, IronPython, and IPython

A project system that implicitly picks up a folder structure of Python code, and also allows explicit control so you can identify app code, test code, web pages, JavaScript, build scripts, and so on.

Project templates for console, web, Azure, data science, and other types of projects.

The Azure SDK for Python (see below)

Rich editing and code comprehension features including syntax coloring, auto-complete across all your code and libraries, signature help, class view, Go to Definition, Find All References, refactoring, and more.

An Interactive (REPL) Window

IPython with data visualizations.

Support for IronPython and .NET/WPF.

Rich debugging without a Visual Studio project, the ability to an existing executable, mixed-mode debugging, remote debugging to Windows/Linux/Mac, and debugging within the Interactive Window.

Profiling tools.

Testing tools.

The following resources will help you get started:

Note that Visual Studio does not at present provide the means to create a stand-alone executable using Python, which essentially means a program with an embedded Python interpreter. However, there are various means within the Python community to do this as described on StackOverflow. CPython also supports being embedded within a native application, as described on the blog post, Using CPython's Embeddable Zip File.

Building UI with Python

The main offering for building a UI with Python is the Qt Project, with bindings for Python known as PySide (the official binding) (also see PySide downloads)and PyQt. At present, Python support in Visual Studio does not include any specific tools for UI development.

Azure SDK for Python

The Azure SDK for Python, which supports Windows, Mac, and Linux, makes it easy to consume and manage Microsoft Azure Services. Refer to the following resources for details:

Scientific Computing

In addition to all the Python data-scientist libraries, the Python Tools for Visual Studio support IPython and IPython Notebooks, which can be hosted in Azure.

We recommend obtaining IPython and scientific computing libraries (matplotlib, scipy, numpy, etc.) from University of California, Irvine.

See Also

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值