Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
27 views

Installation Python

The document provides instructions for installing Anaconda or PyCharm for Python development. It explains how to download and install Anaconda, which includes Python and PyCharm. It also provides options for installing only PyCharm and configuring the interpreter. The order of installation and various configuration steps are outlined.

Uploaded by

harish tiwari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Installation Python

The document provides instructions for installing Anaconda or PyCharm for Python development. It explains how to download and install Anaconda, which includes Python and PyCharm. It also provides options for installing only PyCharm and configuring the interpreter. The order of installation and various configuration steps are outlined.

Uploaded by

harish tiwari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

INSTALLATION

Requirements

 Use an IDE called PyCharm


 We will also use a package manager called
Anaconda
 Anaconda comes with a Python interpreter

2
Option 1

Install Annaconda package


Software choices

 A package manager – Anaconda


 Anaconda comes with a Python interpreter
 It contains inbuilt IDE - PyCharm

4
Order of Installation

 FIRST install Anaconda (this also installs


Python)
 THEN launch/install PyCharm

5
Getting Anaconda

 Go to https://www.anaconda.com/download/
 Select your Operating System

6
Getting Anaconda
 Download the Python 3 version

7
Installing Anaconda
 The default options should all work

8
Installing Anaconda
 Make sure you
install for Just Me
 Install for “All
Users” might
cause some
issues later

9
Installing Anaconda
 Also make sure
that it installs to
the root of your
home folder
 This should be
the default
already selected

10
Installing Anaconda

 This should work


 However, avoid
having folder
name with „space‟
for installation

11
Installing Anaconda

 You can add


Anaconda to the
PATH if you
want, but it's not
necessary

12
Note

 Anaconda should finish installing.

 Launch PyCharm IDE already installed from


Annaconda navigator

13
Option 2

You can use only PyCharm on you


PC as described below
Getting PyCharm
 Go to https://www.jetbrains.com/pycharm/
 You might need to accept cookies
 Click on
 "Download Now"

15
Getting PyCharm
 Click on Community download button (Free, open
source)

16
Getting PyCharm
 Run the downloaded file

17
Getting PyCharm
 Click the “Next” button

18
Getting PyCharm
 Choose the correct bit launcher and do
create an association with .py

19
Setting up PyCharm

 Set UI theme.
 Click Skip
Remaining and
Set Defaults

20
Writing a Program
 First, Create a New Project

21
Writing a Program
 Name the project.
 Click on Create.

22
Writing a Program
 Close the Tip window
 Now Virtual
Environment should
be created

23
Setting Interpreter
 Go to the “File ”
menu
 Select “Settings”
 Click on “Project
Interpreter”

24
Setting Interpreter

Selecting the Right


Interpreter
 Click on the
dropdown box
and Choose
python
interpreter
 Click on Apply
and then OK.

25
Setting Interpreter
Selecting the Right
Interpreter
 If anaconda
interpreter are
not listed in the
dropdown box,
then click on
“gear” button.
 Select “Add”.

26
Setting Interpreter
 You should be able to look
at one of the
 “Base Interpreter” link under
“Virtualenv”
 “Python version” under
“Conda Environment”
 “Interpreter” under “System
Interpreter”
 “Base Interpreter” under
Pipev Environment
 Select the “python.exe” file
 Click “OK”

27
Setting Interpreter
 Creating new Python file
 Go to the “File” menu
 Select “New”
 Select Python File
 Give your new Python file a name.

28
Run Sample
 Under the Run menu, you should see a “Run”
button. Click it to run your code.
 A window may pop up – select the name of your
Python File.
 Then, at the bottom of the IDE you should see
this new window with your result.

29
Option 3
You can also use online Compiler on
you PC as described below
Online Platform
 We are going to use http://repl.it an online
platform for multiple languages
Get Started
 Login with gmail or facebook or signup with different
account.
Create Repl
• Click new repl and then select Python from drop down.
First Setup

You might also like