Home / Python / Python Environment Setup

Python Environment Setup

Python Programming Langauge is available to work on most of the famous Operating Systems like Window OS, Mac OS or Linux. In this tutorial, we will learn how we can setup up Python on our OS. So follow my steps.

 Installing Python On Windows OS

To install Python on Windows OS follow the simple steps below.

  • Open your internet browser and go to web address https://www.python.org/downloads/.
  • Now find Download Python 3.7.2 button here(Maybe you can see a different version). Click the button and download your Python package.
  • After the package is downloaded double click it and follow the instructions to install it.
  • After the installation of Python successfully an IDLE is also installed with it and its function is to provide a graphical user interface for the sake of work with Python. Now you have installed Python for Windows successfully.
  • Open your installed IDLE and write your code if you are a newbie then you can copy the code below.
  • Follow File > New Window or use a keyboard shortcut (Ctrl + N).
  • Now write/paste your code and save it with the .py extension.
  • Now for showing output go Run > Run module or use a keyboard shortcut key F5 and an output will be shown in the bottom of the screen. Hurray! You run your first Python code in Windows OS.
Recommended:  Python for Loop

 Installing Python On Mac OS

  • Open your internet browser and go to web address https://www.python.org/downloads/.
  • Now look for “Looking for Python with a different OS?” and click on Mac OS. Select the latest version and download it.
  • After downloading the setup open it and follow the instructions to install it.
  • If are you new to programming and don’t have any experience then it is recommended that you should install a simple text editor like Sublime Text. Now I will tell you how to work with the Sublime.
  • After you download Sublime Text editor simply install it.
  • After installation go to option File > New File for Mac OS shortcut is(Cmd + N). Now save your file with File > Save or (Cmd + S) with .py extension. An extension must be like myPrograme.py or helloWorld.py
  • Now time for your first code to write on Sublime Text editor. For newbies they can copy the code from below:
  • The purpose of this little code is to print “Hello, World” to the screen.
  • To compile and run this code in Sublime text editor go to Tools > Build for Mac OS Shortcut(Cmd + B). An output of this little code will be shown at the bottom of the editor. That’s the spirit that you’ve execute and run your first programming code in Python.
Recommended:  Python Introduction : Features Of Python

Installing Python On Linux (Ubuntu)

  • To work on Linux (Ubunto) with Python you should install following dependencies first.
  • Now first on your web browser open the website link https://www.python.org/downloads/.
  • Download Python 3.7.2 (Maybe you see a different version) click and download it.
  • Now in Linux open your terminal window and go to your directory where Python package is downloaded.
  • To extract the package use the following command. Remember at this current time the latest version of Python is 3.7.2 maybe it changes when you download so choose the version or filename according to your latest version for the extraction.
  • Now after this extraction write command to go to the extracted directory. Command like this.
  • Now run the following command for the compilation operation of source code on your OS.
Recommended:  Python Nested if Statements With Example
  • I recommend installing Sublime to work because it is very easy to work especially if you are a newbie to programming. for this use the following commands.
  • Open your Sublime text editor and go to File > New File or keyboard key (Ctrl+N).
  • Now save your file with .py extension. An extension must be like myPrograme.py or helloWorld.py
  • Now save your file with File > Save or (Ctrl + S). Now write your first code or copy it from below.
  • The purpose of this little code is to print “Hello, World” to the screen.
  • To compile and run this code in Sublime text editor go to Tools > Build for keyboard shortcut(Ctrl + B). An output of this little code will be shown at the bottom of the editor. That’s the spirit that you’ve execute and run your first programming code in Python.

You have successfully learned Environment Setup Of Python Programming Language on different Operating Systems.

About Jack Sparrow

Avatar
Hay I am Admin Of This Website. I am very passionate about Computers and technology. This website is the result of my passion. I love to eliminate the barriers comes in the for seeking education. This website is the free source of learning about new technology and up to date knowledge.

Check Also

Nested-if-statement

Python Nested if Statements With Example

Python Nested if Statements With Example In this lesson, I will teach you about Python …

Leave a Reply

Your email address will not be published. Required fields are marked *