You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python/installation.md
+36-2Lines changed: 36 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ manager: "ghogen"
20
20
21
21
To install Python support for Visual Studio, follow the instructions in the section that matches your version of Visual Studio:
22
22
23
-
-[Visual Studio 2017](vs-tutorial-01-00.md)
23
+
-[Visual Studio 2017](#visual-studio-2017)
24
24
-[Visual Studio 2015](#visual-studio-2015)
25
25
-[Visual Studio 2013 and earlier](#visual-studio-2013-and-earlier)
26
26
@@ -36,7 +36,39 @@ To quickly test Python support after following the installation steps, Open the
36
36
37
37
## Visual Studio 2017
38
38
39
-
Refer to [Tutorial Step 0: install Python support in Visual Studio 2017](vs-tutorial-01-00.md).
39
+
1. Download and run the latest Visual Studio 2017 installer:
40
+
41
+
> [!div class="nextstepaction"]
42
+
> <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Install Visual Studio 2017 Community</a>
43
+
44
+
>[!Tip]
45
+
> The Community edition is for individual developers, classroom learning, academic research, and open source development. For other uses, install <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Visual Studio 2017 Professional</a> or <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprisel&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Visual Studio 2017 Enterprise</a>.
46
+
47
+
1. The installer presents you with a list of workloads, which are groups of related options for specific development areas. For Python, select the **Python development** workload.
48
+
49
+

50
+
51
+
Optional: if you're working with data science, also consider the **Data science and analytical applications** workload. This workload includes support for Python as well as the R and F# languages. For more information, see [Data science and analytical applications workload](../rtvs/data-science-workload.md).
52
+
53
+
> [!Note]
54
+
> The Python and Data Science workloads are available only with Visual Studio 2017 release 15.2 and later.
55
+
56
+
1. On the right side of the installer, chose additional options if desired. Skip this step to accept the default options.
57
+
58
+

59
+
60
+
| Option | Description |
61
+
| --- | --- |
62
+
| Python distributions | Choose any combination of the 32-bit and 64-bit variants of the Python 2, Python 3, Anaconda2, and Anaconda3 distributions that you plan to work with. Each includes the distribution's interpreter, runtime, and libraries. Anaconda, specifically, is an open data science platform that includes a wide range of packages. (You can return to the Visual Studio installer at any time to add or remove distributions.) |
63
+
| Cookiecutter template support | Installs the Cookicutter graphical UI to discover templates, input template options, and create projects and files. See [Using the Cookicutter extension](cookiecutter.md). |
64
+
| Python web support | Installs tools for web development including HTML, CSS, and JavaScript editing support, along with templates for projects using the Bottle, Flask, and Django frameworks. See [Python web project templates](template-web.md). |
65
+
| Python IoT support | Supports Windows IoT Core development using Python. |
66
+
| Python native development tools | Installs the C++ compiler and other necessary components to develop native extensions for Python. See [Creating a C++ extension for Python](cpp-and-python.md). |
67
+
| Azure Cloud Services core tools | Provides additional support for developer Azure Cloud Services in Python. See [zure Cloud Service Projects](template-azure-cloud-service.md). |
68
+
69
+
1. After installation, the installer provides options to modify, launch, repair, or uninstall Visual Studio. The **Modify** button changes to **Update** when updates to Visual Studio when updates are available for any installed components. (The modify option is then available on the drop-down menu.) You can also launch Visual Studio and the installer from the Windows Start menu by searching on "Visual Studio".
70
+
71
+

40
72
41
73
42
74
## Visual Studio 2015
@@ -88,3 +120,5 @@ where:
88
120
### User-specific installations (1.5 and earlier)
89
121
90
122
Python Tools for Visual Studio 1.5 and earlier allowed installation for the current user only, in which case the installation path is `%LocalAppData%\Microsoft\VisualStudio\<VS_ver>\Extensions\Microsoft\Python Tools for Visual Studio\<PTVS_ver>` where <VS_ver> and <PTVS_ver> are the same as described above.
Copy file name to clipboardExpand all lines: docs/python/publishing-to-azure.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -107,11 +107,11 @@ Publishing to Azure App Service from Visual Studio 2017 copies only the files in
107
107
<addkey="WSGI_HANDLER"value="app.wsgi_app()"/>
108
108
```
109
109
110
-
- **Flask**: Change the `WSGI_HANDLER` value to `<project_name>.app` where `<project_name>` matches the name of your project. You can find the exact identifer by looking at the `from <project_name> import app` statement in the `runserver.py`. For example, if the project is named "FlaskExample", the entry would appear as follows:
110
+
- **Flask**: Change the `WSGI_HANDLER` value to `<project_name>.app` where `<project_name>` matches the name of your project. You can find the exact identifer by looking at the `from <project_name> import app` statement in the `runserver.py`. For example, if the project is named "FlaskAzurePublishExample", the entry would appear as follows:
111
111
112
112
```xml
113
113
<!-- Flask apps only: change the project name to match your app -->
- **Django**: Two changes are needed to `web.config` for Django apps. First, change the `WSGI_HANDLER` value to `django.core.wsgi.get_wsgi_application()` (the object is in the `wsgi.py` file):
title: Working with Python in Visual Studio, Step 0 - Installation | Microsoft Docs
3
3
ms.custom: ""
4
-
ms.date: 9/26/2017
4
+
ms.date: 10/9/2017
5
5
ms.reviewer: ""
6
6
ms.suite: ""
7
7
ms.technology:
@@ -18,32 +18,17 @@ manager: "ghogen"
18
18
19
19
# Install Python support in Visual Studio
20
20
21
-
Visual Studio 2017 supports Python development with easy-to-install options in the Visual Studio installer. Here's how.
21
+
1. Download and run the latest Visual Studio 2017 installer (Python support is present in release 15.2 and later):
22
22
23
-
1. Download and run the latest Visual Studio 2017 installer from [visualstudio.com](https://www.visualstudio.com/downloads). Python is supported in all editions of Visual Studio 2017 release 15.3 and higher; it may not appear with earlier release channels.
23
+
> [!div class="nextstepaction"]
24
+
> <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Install Visual Studio 2017 Community</a>
24
25
25
-
1. The installer presents you with a list of workloads, which are groups of related options for specific development areas. For Python, select the **Python development** workload.
26
+
>[!Tip]
27
+
> The Community edition is for individual developers, classroom learning, academic research, and open source development. For other uses, install <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Visual Studio 2017 Professional</a> or <atarget="frameTarget"href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprisel&rel=15&utm_source=docs&utm_medium=clickbutton&utm_campaign=python_gettingstarted">Visual Studio 2017 Enterprise</a>.
26
28
27
-

28
-
29
-
Optional: if you're working with data science, also consider the **Data science and analytical applications** workload. This workload includes support for Python as well as the R and F# languages. For more information, see [Data science and analytical applications workload](../rtvs/data-science-workload.md).
30
-
31
-
1. On the right side of the installer, chose additional options if desired. Skip this step to accept the default options.
32
-
33
-

29
+
1. The installer presents you with a list of workloads, which are groups of related options for specific development areas. For Python, select the **Python development** workload and select **Install**:
34
30
35
-
| Option | Description |
36
-
| --- | --- |
37
-
| Python distributions | Choose any combination of the 32-bit and 64-bit variants of the Python 2, Python 3, Anaconda2, and Anaconda3 distributions that you plan to work with. Each includes the distribution's interpreter, runtime, and libraries. Anaconda, specifically, is an open data science platform that includes a wide range of packages. (You can return to the Visual Studio installer at any time to add or remove distributions.) |
38
-
| Cookiecutter template support | Installs the Cookicutter graphical UI to discover templates, input template options, and create projects and files. See [Using the Cookicutter extension](cookiecutter.md). |
39
-
| Python web support | Installs tools for web development including HTML, CSS, and JavaScript editing support, along with templates for projects using the Bottle, Flask, and Django frameworks. See [Python web project templates](template-web.md). |
40
-
| Python IoT support | Supports Windows IoT Core development using Python. |
41
-
| Python native development tools | Installs the C++ compiler and other necessary components to develop native extensions for Python. See [Creating a C++ extension for Python](cpp-and-python.md). |
42
-
| Azure Cloud Services core tools | Provides additional support for developer Azure Cloud Services in Python. See [zure Cloud Service Projects](template-azure-cloud-service.md). |
43
-
44
-
1. After installation, the installer provides options to modify, launch, repair, or uninstall Visual Studio. The **Modify** button changes to **Update** when updates to Visual Studio when updates are available for any installed components. (The modify option is then available on the drop-down menu.) You can also launch Visual Studio and the installer from the Windows Start menu by searching on "Visual Studio".
45
-
46
-

31
+

47
32
48
33
1. To quickly test Python support, launch Visual Studio, press Alt+I to open the Python Interactive window, and enter `2+2`. If you don't see the output of `4`, recheck your steps.
49
34
@@ -59,3 +44,5 @@ Visual Studio 2017 supports Python development with easy-to-install options in t
59
44
-[Creating an environment for an existing Python interpreter](python-environments.md#creating-an-environment-for-an-existing-interpreter).
60
45
-[Install Python support in Visual Studio 2015 and earlier](installation.md).
0 commit comments