Getting Started

Before we can start you’ll need to install Pythonarrow-up-right + PyCharm Community Editionarrow-up-right. It’ll help point out any errors in your script and offer useful suggestions for your code. A zip archive with all the project files can be found herearrow-up-right.

1. Install Python

Linux

  • Debian/Ubuntu: sudo apt install python3

  • Arch: sudo pacman -S python3

  • RHEL: sudo yum install -y python3

macOS

triangle-exclamation

Windows

triangle-exclamation
triangle-exclamation

2. Install PyCharm Community Edition

Go to https://www.jetbrains.com/pycharm/download/arrow-up-right and scroll down. Download the Community Edition.

triangle-exclamation

It will should detect the correct operating system for you, or you can click one of these links:

Install and run it, accept any terms/user agreements. Your main screen should look like this:

3. Creating your first project

Let’s name this one “affection-bots”.

Your project folder will look like this. It contains some default files inside “.venv” which PyCharm uses. You can collapse that folder and ignore it from now on.

I’ve included a zip archive with some files to get startedarrow-up-right. Extract the contents into your project folder.

4. Install packages

Click this button in the bottom left to open the Terminal panel.

Type this to install a few packages we’ll be using:

Give it a few seconds and it should complete without errors.

Now we can start cooking. In the next section we’ll look at what functions I’ve included for you to use.

Last updated