0% found this document useful (0 votes)
103 views16 pages

Installing Python and PyCharm

The document provides steps to install Python and PyCharm IDE on Windows and MacOS. For Windows, it describes downloading the latest Python version from the official website, selecting the 32-bit or 64-bit installer based on the OS, selecting the "Add to Path" option, and verifying the installation. It also provides steps to install PyCharm Community edition, create a project folder, and verify the installation by running sample code. For MacOS, it describes installing Homebrew and using it to install the latest Python version, and then similarly installing PyCharm and verifying it.

Uploaded by

shauryagoel0705
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
103 views16 pages

Installing Python and PyCharm

The document provides steps to install Python and PyCharm IDE on Windows and MacOS. For Windows, it describes downloading the latest Python version from the official website, selecting the 32-bit or 64-bit installer based on the OS, selecting the "Add to Path" option, and verifying the installation. It also provides steps to install PyCharm Community edition, create a project folder, and verify the installation by running sample code. For MacOS, it describes installing Homebrew and using it to install the latest Python version, and then similarly installing PyCharm and verifying it.

Uploaded by

shauryagoel0705
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 16

Code & Debug

Installing Python on Windows


Below you will get detailed guide for installing Python on your windows OS.
Most of the time, between the time the author writes the instructions and the
time you try them out, months have passed—if you are lucky. One version
change, and things might work in the way they are described in the book.

Setting up the Python interpreter


First, let us talk about your OS. Python is fully integrated and, most likely,
already installed in almost every Linux distribution. If you have a Mac, it is
likely that Python is already there as well (although possibly only Python 2.7); if
you are using Windows, however, you probably need to install it.
Getting Python and the libraries you need up and running requires a bit of
handiwork. Linux and macOS seem to be the most user-friendly for Python
programmers; Windows, on the other hand, may require a bit more effort.
Steps to install python:
1. The place you want to start is the official Python website:
https://www.python.org. This website hosts the official Python
documentation and many other resources that you will find very useful.\

2. Click on the all-releases section.

3. Click on Download of Python 3.10.4.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

4. Install the 32- or 64-bit version depending upon your windows OS.

5. After downloading run the setup and follow the instructions below.

6. Make sure add to path is selected and then click on Install Now. The
setup will begin installing python on windows OS.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

On MacOS, python is already installed by default.


Running Python on Windows
To open the console in Windows, just press the Windows key and search for
cmd.

Click on Command Prompt and run the following code.

If Python 3.10.4 comes as the output, that means the installation of Python on
your OS is successful.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Installing PyCharm IDE on Windows


An integrated development environment (IDE) is a software application that
helps programmers develop software code efficiently. We will be writing our
Python code in PyCharm so we can code easily, also it is beginner friendly.
Follow the steps below to install PyCharm on Windows OS:
1. Visit https://www.jetbrains.com/pycharm/, the official website of Jet
Brains and we will be installing PyCharm from this website. Click the
Download button.

2. Go for the Community Build. The Professional Build is payable and is


used by experienced developers.

3. Follow the pictures below to continue with the process of installation of


PyCharm on Windows OS.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

After rebooting your Windows OS. Create a new folder anywhere on your
system. For this whole book, we are creating a new folder named Python
Programming on our Desktop. You can choose anywhere you want as per your
choice.

It is time to open PyCharm and start our coding experience. Try opening the
application and follow the instructions below.

Select your newly created folder and click OK.

It will ask you if you trust the project. Click on Trust Project.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Once PyCharm gets opened, it will take some time to get stable.
There will be a dummy code created with a main.py file automatically created
for you at the start. Just ignore the code and try to run the file by pressing
CTRL+SHIFT+F10 or by pressing the play button shown below.

After running, there will be dummy output shown below, meaning that both
PyCharm as well as Python is installed properly on your Windows OS.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Installing Python on MacOS


MacOS comes with Python pre-installed. But it is Python Version 2.7, which is
now deprecated (abandoned by the Python developer community).
The entire Python community has now moved on to using Python 3.x (the
current version as of writing this is 3.9). And Python 4.x will be out soon, but it
will be completely backward compatible.
If you try to run Python from your MacOS terminal, you will even see this
warning.
To install Python, we need to install BREW first on MacOS.
To do so, type the following command in terminal. To open terminal, go to
Finder -> Search for terminal.
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Your terminal will ask for Super User-level access. You will need to type your
password to run this command. This is the same password you type when you
log into your Mac. Type it and hit enter.
HomeBrew will ask if you want to continue, press ENTER

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

It will take some time to install homebrew. After it is done, your screen will
look something like this.

Restart your teminal, and type the following command to install Python.
brew install python

A set of instructions will be operated automatically to install python.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

After the python installation is successful. You can check if python is installed
properly by typing the following command.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Installing PyCharm IDE on MacOS


An integrated development environment (IDE) is a software application that
helps programmers develop software code efficiently. We will be writing our
Python code in PyCharm so we can code easily, also it is beginner friendly.
Follow the steps below to install PyCharm on MacOS:
1. Visit https://www.jetbrains.com/pycharm/, the official website of Jet
Brains and we will be installing PyCharm from this website. Click the
Download button.

2. Go for the Community Build. The Professional Build is payable and is


used by experienced developers.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

3. Follow the pictures below to continue with the process of installation of


PyCharm on Mac OS.

4. Create a new folder anywhere on your system. For this whole book, we
are creating a new folder named Python Programming on our Desktop.
You can choose anywhere you want as per your choice.

5. Click on Open and select your folder.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

6. Click on Trust Project.

7. Once PyCharm gets opened, it will take some time to get stable. There
will be a dummy code created with a main.py file automatically created
for you at the start. Just ignore the code and try to run the file by
pressing the play button shown below.

8. After running, there will be dummy output, meaning that both PyCharm
as well as Python is installed properly on your MacOS.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Changing PyCharm Theme & Settings


It is recommended to follow the steps below to change the Theme and some
basic settings of PyCharm so we can code better and efficiently.
Go to Settings.

Go to Plugins section and search of material theme and install it.

After installing restart your IDE by clicking Restart IDE.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Your IDE will now be opened with new theme. To change the theme according
to your preference. Go to Settings -> Appearance & Behavior -> Appearance.

Select your theme as per your choice and color.

To change font size, go to Settings -> Editor -> Font -> Click on Current Editor.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in
Code & Debug

Change the font size and line height according to your preference.

One more setting is to format code so it is easy to understand, whenever we


save our file. For that go to Settings -> Tools -> Actions on Save.
Select the Reformat Code option and click on apply.

That is, it. We are done with our PyCharm settings and we are now good to
go.

Contact: +91-9712928220 | Mail: info@codeanddebug.in


Website: codeanddebug.in

You might also like