install python

Install Python-: After  downloading, installing, and starting up Python and IDLE, an integrated development environment for Python. At this writing, Python 3.6 is the most current version, and 3.7 is under development. After years of refinement, Python 3 is the first version of the language that isn’t fully backward-compatible with earlier versions so be sure to get a version of Python 3. It should be several years before another such dramatic change occurs, and any future enhancements will be developed with concern to avoid affecting an already-significant existing code base.

First go to the Python download  and click here

Download the latest version of Python language and download it.

Installing Python-: Installing Python is a simple matter, regardless of which platform we are using. The first step is to obtain a recent distribution for our machine.The most recent one can always be found at this python download This book is based on Python 3.7. If we have Python 3.5 or even 3.7, that’s fine.

Version of Python-: If we have already have an earlier version of Python installed on our machine. Many Linux distributions and mac OS come with Python 2.x as part of the operating system. Because Python 3 isn’t completely compatible with Python 2, it’s reasonable to wonder whether installing both versions on the same computer will cause a conflict.

We can have multiple versions of Python on the same computer. In the case of UNIX-based systems like OS X and Linux, Python 3 installs alongside the older version and doesn’t replace it. When our system looks for “python,” it still finds the one it expects and when we want to access Python 3, we can run python 3 or idle. In Windows the different versions are installed in separate locations and have separate menu entries.

Some basic platform-specific descriptions for the Python installation are given..

Microsoft Windows-: Python can be installed in most versions of Windows by using the Python installer program, currently called python-3.7.2 .exe. Download it. and execute it, and follow the installer’s prompts. we may need to be logged in as administrator to run the install. If we are on a network and don’t have the administrator password It asked  system administrator to do the installation for us.

UNIX/Linux-:  Most Linux distributions come with Python installed. But the versions of Python vary and the version of Python installed may not be version 3. We need to be sure that we have the Python 3 packages installed. It is also possible that IDLE isn’t installed by default and that we will  need to install that package separately. Although It is possible to build Python 3 from the source code available on the website additional libraries are needed and the process isn’t for novices. If a pre-compiled version of Python exists for our distribution of Linux  I recommend using that. Use the software management system for your distribution to locate and install the correct packages for Python 3 and IDLE. Versions are also available for running Python under many other operating systems.

Macintosh-: We need to get a version of Python 3 that matches your OS X version and our processor. After  determine the correct version download the disk image file and double-click to mouse it and run the installer inside. The OS X installer sets up everything automatically, and Python 3 will be in a sub-folder inside the Applications folder labelled with the version number.

mac OS ships with various versions of Python as part of the system, but we don’t need to worry about that, Python 3 will be installed in addition to the system version. If we have brew installed we can also use it to install Python by using the command brew install python 3.

Alternative Python distribution-: There are  alternative Python is available for python language.we can get Anaconda or miniconda from here click . Download the Python 3 version of the installer that matches your operating system, and run it according to the instructions.

Basic Interactive mode and IDLE -: we have two built-in options for obtaining interactive access to the Python interpreter, the original basic (command-line) mode and IDLE.

IDLE is available on many platforms, including Windows, Mac, and Linux, but it may not be available on others. we need to do more work and install additional software packages to get IDLE running, but doing so will be worthwhile because IDLE offers a somewhat smoother experience than the basic interactive mode. On the other hand, even if we normally use IDLE, at times we would likely want to fire up the basic mode. we should be familiar enough to start and use either one.

The basic interactive mode- It is a rather primitive environment.

  • Starting a basic session on Windows-:For version 3.x of Python we navigate to the Python 3.7(32-bit) entry on the Python 3.7 sub-menu of the Programs folder on the Start menu and click it. Alternatively we can directly find the Python.exe executable
  • Starting a basic session on mac OS-: Open a terminal window and type python 3. If we get a “Command not found” error, run the Update Shell Profile command script located in the Python 3 sub-folder in the Applications folder.
  • Starting a basic session on UNIX-: Type python 3 at a command prompt.

 

Exiting the interactive shell-: To exit from a basic session, press Ctrl-Z (if we are using on Windows) or Ctrl-D (if  we are using on Linux or UNIX), or type exit() at a command prompt.

IDLE -: It is the built-in development environment for Python. Its name is based on the acronym for integrated development environment (though of course, it may have been influenced by the last name of a certain cast member of a particular British television show). IDLE combines an interactive interpreter with code editing and debugging tools to give us one-stop shopping as far as creating Python code is concerned. IDLE’s various tools make it an attractive place to start as you learn Python. This is how can we  run IDLE on Windows, mac OS, and Linux.

Leave a Reply

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