[go: up one dir, main page]

0% found this document useful (0 votes)
49 views29 pages

Installations

This document provides instructions for installing Python, IDLE, PyCharm, pip, and Jupyter Notebook on a Windows system. It explains how to download and run the Python installer, set environment variables to add Python to the system PATH, verify installations using the command line, open and use IDLE and Jupyter Notebook, and download and set up PyCharm as an integrated development environment for Python.

Uploaded by

saddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views29 pages

Installations

This document provides instructions for installing Python, IDLE, PyCharm, pip, and Jupyter Notebook on a Windows system. It explains how to download and run the Python installer, set environment variables to add Python to the system PATH, verify installations using the command line, open and use IDLE and Jupyter Notebook, and download and set up PyCharm as an integrated development environment for Python.

Uploaded by

saddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Python Installations

• Python Installation
• IDLE Introduction
• Pycharm Installation
• PIP Installation
• Jupyter Notebook Installation
Go to www.python.org/downloads
Click on Download Python 3.6.5
• A exe file will be downloaded.
• Click on customize installation.
Make sure everything is ticked.
Check you have all the ticks like below.
• Change the default path by selecting browse.
• Select a well known path which you can access.
• Do not select documents just because I selected.
Click on Install
• Python should install on your system.
• Then go to the path where you have installed python.
Select the python path, copy it and go to
system properties.
• Go to system properties.
• Then to advanced system
settings

Click on Environment variables.
In the window like below, go to PATH under
system variables.
Select the path and click on edit . Select new
and give your copied path.
Copy the Python\Scripts path also and paste
it in the system variables.

• Click on OK until
the end and close
the system
settings.
Go to the command prompt and open it.
Type in ‘python’ in the cmd.
• You will get the python version and you are in python shell now.
• The three greater than symbols indicate you are in python shell
• To come out of python shell enter ctrl+z and enter or type in ‘exit()’.
Enter ‘pip --version’ in the command line
• You will get the pip installed path and the version.
• Don’t worry if versions do not match. We can upgrade pip later.
In the windows search enter ‘IDLE’.
• If you do not see IDLE , it will be present in the link of
• ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python
3.6’
Open IDLE
• IDLE is just like Python shell. Remember the 3 greater than symbols.
• In IDLE we can execute Python statements.
• In IDLE, we can enter a python statement and the output is returned
on our screen at that instance.
• Means In IDLE we can only do line by line executions.
IDLE cont..
• In IDLE their will not be any syntax help . It does not give the auto
complete feature like Pycharm and other IDE’s do.
• In IDLE,we can execute a python file.
• Click on file and new file will open a file where you can write multiple
lines of code.
• To execute a file in IDLE we need
to save it.
Save the file on desktop.
• We can execute the file by pressing F5
• This will run the file and gives the output.
Executing python files through command
prompt.
• We can also execute the python files in command prompt.
• Go to command prompt.
• Change directory to the location of the file you wish to execute.
• ‘cd’ is the command for changing directory.
• Then enter ‘python space the file name with extension.
Installing Jupyter Notebook
• Upgrading pip to the latest . Type in the command ‘python3 –m pip
install -- upgrade pip
• Type the command ‘pip install Jupyter’ in the command prompt.

• Jupyter should successfully install.

• Jupyter note book should open in the browser.


Jupyter Notebook
• By default jupyter notebook will be showing you your C drive user
data.
Jupyter Notebook
• Create a folder as jupyter-notebook and navigate to that folder from
jupyter notebook.

• Open the folder and then click on new which will be there in the right
side cornor of screen.
Jupyter Notebook
• Click on new and select python 3.
• This will create a new notebook in a new tab of your browser.
Jupyter Notebook
• In Jupyter Notebook, we work on in the cells . The boxes with ‘In[]’
are the cells. Each cell will be connected to all its previous cells.

• We can write code inside a cell and execute them with the shortcut of
ctrl+enter.
• Be carefull that if you want a cell to take data from a previous cell,
that previous cell needs to be executed at least once.
Jupyter Notebook
• The toolbar does the following.
• Run the cells code
• Save
• Interrupt the kernel
• Add a new cell
execution(program
• Cut a new cell execution
• Copy selected cells • Restart the kernel
• Paste selected cells • Restart the kernel and rerun
• Move selected cells up the whole notebook
• Move selected cells down
Jupyter Notebook
• Jupyter notebook is majorly used for data analysis purposes.
• We can also use the notebook for python practise.
• With jupyter notebook we can visulatize the outputs.
• Jupyter means JUlia ,PYThon , R language executor, which are used
majorly in data analysis.
• Like IDLE Juupyter notebook also does not give the syntax and
autocomplete features.
Pycharm-Installation
• Go to the page ‘https://www.jetbrains.com/pycharm/download/’
• Click on the community edition of python which is free.
• Click on the download button and this will install the pycharm exe file.
• It will ask for administrative privileges.just click yes.
Pycharm Installation.
• Install the pycharm with default settings.
• Click next until you get the page of install.
• Click on install
• This will install the pycharm.
Pycharm Installation
• Once Pycharm is installed seect create a new project.
• Please beware that pycharm needs python to be installed on your
computer as a prerequisite.
• Pycharm will pick the python path as the default interpretor.

You might also like