Installing Python and discord.py on your PC

callmeJ
2 min readApr 23, 2023

--

So we’re going to need two primary dependencies to get the bot up and running. The first is python itself, the language the program is written in and the second is discord.py which is a library of functions we can use to make the code work with the discord API.

  1. Go to https://www.python.org/downloads/ and click on the button that says Download Python 3.x.x (where x.x is the latest version number). This will download a file called python-3.x.x.exe (where x.x is the version number) to your computer.
  2. Find the file you downloaded and double-click on it to run it. This will open a window that says Python 3.x.x Setup (where x.x is the version number).
  3. Important! On the first screen, make sure to check the box that says Add Python 3.x to PATH (where x.x is the version number). This will make it easier for you to use Python later.
  4. Click on Install Now and wait for the installation to finish. You might see some messages asking for permission or warning about security. Just click Yes or Allow or OK to continue.
  5. When the installation is done, click on Close. Yay! You have installed Python on your Windows 10 computer! 🎉
  6. To check if Python is working properly, open a command prompt (a program that lets you type commands). You can do this by clicking on the Start button and then typing cmd and pressing Enter.
  7. In the command prompt, type python --version and press Enter. You should see something like Python 3.x.x (where x.x is the version number) printed on the screen. This means Python is working correctly.
  8. To install discord.py, type pip install discord.py and press Enter. This will download and install discord.py on your computer using pip, which is a tool that comes with Python for managing packages (libraries that add extra features to Python).
  9. When the installation is done, type python -m discord --version and press Enter. You should see something like discord.py x.y.z (where x.y.z is the version number) printed on the screen. This means discord.py is working correctly.

After installing these dependencies

  1. Open the terminal by searching for cmd/terminal on Windows and pressing Enter.
  2. Navigate to the directory where your Python program is saved using the cd (change directory) command. For example, if the program is saved in a folder called python_projects on your desktop, you can type cd Desktop/python_projects and press Enter.
  3. Type HawkbotV7.py and press Enter. This will run the program and show you the output on the terminal screen.
Once you receive this message on the terminal, you’re done! :D

--

--