Monday, February 4, 2019

Get started with python (install python interpreter)

Python is available on a wide variety of platforms including Linux and Mac OS X. Let's understand how to set up our Python environment.

Getting Python

The most up-to-date and current source code, binaries, documentation, news, etc., is available on the official website of Python https://www.python.org/
You can download Python documentation from https://www.python.org/doc/. The documentation is available in HTML, PDF, and PostScript formats.

Windows Installation

Here are the steps to install Python on Windows machine.
  • Open a Web browser and go to https://www.python.org/downloads/.
  • Follow the link for the Windows installer python3.6.exe file where is the version you need to install.
  •  the Windows system must support Microsoft Installer 2.0. Save the installer file to your local machine and then run it to find out if your machine supports EXE.
Run the downloaded file. This brings up the Python install wizard, which is really easy to use. Just accept the default settings, wait until the install is finished, and you are done.

pycharm IDE


Pycharm IDE provide the help to learn python (provide autocomplete syntax)
and download the pycharm ide :https://www.jetbrains.com/pycharm/download/


Setting up PATH

Programs and other executable files can be in many directories, so operating systems provide a search path that lists the directories that the OS searches for executables.
The path is stored in an environment variable, which is a named string maintained by the operating system. This variable contains information available to the command shell and other programs.
The path variable is named as PATH in Unix or Path in Windows (Unix is case sensitive; Windows is not).
In Mac OS, the installer handles the path details. To invoke the Python interpreter from any particular directory, you must add the Python directory to your path.
Step1: go to the python directory

Step2: go to the python directory:C:\Users\amankumar\AppData\Local\Programs\Python\Python36-32\Scripts
Step3:copy the address of following directery open the following setting
go to computer >press the right mouse key and go to properties>
click the Advance system setting> click on Environment Variables>

>create a new variable give Name and path pest your directory


check for set the path :
step1:open command promt(cmd)
step2:type python and press Enter key and start your python interpreter





if you comes problems setting the Path you comment 


No comments:

Post a Comment