How to Setup Visual Studio to Work with Python

In this post, I will show you how to set up the environment in Visual Studio, to use Python in it. For setting up the environment, we have to download the Python MSI for the respective Visual Studio version.

Here, I am using Visual Studio 2013, so I am downloading the 2013 MSI file, from this link.

Check the MSI for Visual studio 2013.

This is image title

Click on Python Tools for VS 2013. It will start downloading the file.

Now, open the downloaded file.

This is image title

Click on Install.

This is image title

Click OK.

This is image title

It will start installing the setup on your PC.

This is image title

Click Finish to complete the installation.

Now, Open your Visual Studio 2013 and create a new Project. Choose the project template as Python and check that all the templates have been installed in your Visual studio.

This is image title

Thus, in this way, you can integrate Python in Visual Studio.

Now, click on Python Application Template and click OK. It will show an empty screen. Write the following code, there:

print("Enter a Number")  
print("Enter second Number")  
print("The Result Is:")  

So, this python program takes two inputs from the user and displays their sum on the console. Here is the output:

This is image title

So, in this way, we can start Python programming in Visual Studio. Hope this tutorial will give you some basic idea about integrating Python in Visual Studio. If you have any problems regarding this article, you can comment so I can improve it.

Thank you for reading!

#python #python MSI #visualstudio

How to Setup Visual Studio to Work with Python
14.00 GEEK