Installing Python and IDE (Visual Studio Code)

Setting up and Installing Python

Before you can start coding in Python, you have python installed on your computer. To check whether it is installed or not, open your command prompt by pressing windows + r key. A dialogue box will open. Type cmd and hit enter button.


Your command prompt will open. Type python --version command there and hit enter button. If you have python installed it will tell you which python version is installed otherwise you will see and error message of Python was not found. If you have python already installed just skip download and installation steps and simply move on to the Python IDE.


Python is free to download and is available for Windows, macOS, and Linux. Visit the official Python website to download the latest version. Follow the installation instructions for your specific operating system.

image of python official download page

After downloading the setup simply double click on it to install.

Check Add python.exe to PATH and click on Customize installation Button.


Check all the options and click on next button.


Check Install Python 3.12 for all users by yourself. Rest of the options are checked by default. Keep them checked as it is and click on install button.



Now you've successfully installed python on your system. Open your command prompt again and type command python --version . This time you will see your installed python version instead of error.

Image of python version check using command prompt


Python IDEs

An Integrated Development Environment (IDE) is a software application that provides a comprehensive environment for developers to write and run their code. Some popular Python IDEs include PyCharm, Visual Studio Code, and Jupyter Notebook. Choose an IDE that suits your preferences and needs. We'll continue with Visual Studio Code. To download and install Visual Studio Code follow the steps.

Click on the above link and you will be redirected to VS code official site. Simply click on download button according to your operating system.

Image of visual studio code's official download page

After downloading the setup, double click to install it. Installation windows will open. Select I accept the agreement and click on next and follow the steps.

Image of visual studio code step by step installation. In first step choose I accept the agreement and click next

After clicking on next it will ask for location where to install the setup. Do not change the default path. 

Image of setting visual studio path during installation

image of Visual studio code shortcut options during installation

Image of Visual studio code options selection during installation

Image of visual studio code final installation screen

After completing the visual studio code installation wizard, un-check the Launch Visual Studio Code option and click on Finish button.

Image of visual studio code successful installation screen

Congratulations, you have successfully installed visual studio code. To check visual studio version and installation in command prompt, open your command prompt and type command code --version, it tells you which version of visual studio code is currently installed on your system.

Image of How to check visual studio code version using command line prompt.

Comments

Popular posts from this blog

len() Function Python

Scope and Trends of Python in 2024

Loops in Python - Mastering While and For Loops