We will in this part download the code from the course repository, and open the project in PyCharm.
Install the required packages.
sudo apt update
sudo apt install python3 python3-dev python3-distutils python3-venv python-is-python3
Open a new terminal by typing Ctrl+Alt+T.
We can clone the lab under this directory by typing the following in the terminal:
git clone https://github.com/tek5030/lab-intro
You should now find the code and this lab guide in ~/lab-intro
.
The C++ version is in the subfolder called cpp
,
and the Python version in the subfolder called py
.
We will use PyCharm as IDE in the labs. As a student, you can get it for free from https://www.jetbrains.com/pycharm.
Open PyCharm by pressing ⊞ Win and type pycharm
. Press Enter.
Open the py
folder in the lab directory.
Choose Open as Project, and Trust Project if a dialog appears.
PyCharm should discover our requirements.txt
and offer to create a virtual environment based on our /usr/bin/python3.10
interpreter. Press OK.
PyCharm throws an error about a missing pyproject.toml
or setup.py
.
Just ignore the error by pressing OK.
Open the file main.py
and you should se a banner on top, "
Click Install requirements.
We are now ready to continue to the next step.