From eccd50442c6c2555d862690add933f06fe004d39 Mon Sep 17 00:00:00 2001 From: Vzaldat <77528903+Vzaldat@users.noreply.github.com> Date: Tue, 13 Jan 2026 19:17:37 +0000 Subject: [PATCH 1/2] Removed pyyaml==6.0 for new workaround after Cython 3.0 After the Changes to Cython 3.0, it has become difficult to build pyyaml < 6.0 wheels. The recommended workaround is having a pre-wheel installation for pyyaml==x, with a pip constraint file having text 'Cython < 3.0' and installing pyyaml==x using pip install command. (Needs a change at the hands on version as well, with additional commands) --- notebooks/unit4/requirements-unit4.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/unit4/requirements-unit4.txt b/notebooks/unit4/requirements-unit4.txt index 946e9aa8..2a695fea 100644 --- a/notebooks/unit4/requirements-unit4.txt +++ b/notebooks/unit4/requirements-unit4.txt @@ -2,4 +2,4 @@ git+https://github.com/ntasfi/PyGame-Learning-Environment.git git+https://github.com/simoninithomas/gym-games huggingface_hub imageio-ffmpeg -pyyaml==6.0 + From 69df3e47d51836f054a6d98bb23c157c416a571d Mon Sep 17 00:00:00 2001 From: Vzaldat <77528903+Vzaldat@users.noreply.github.com> Date: Tue, 13 Jan 2026 19:23:25 +0000 Subject: [PATCH 2/2] Updated dependencies hands-on.mdx Updated installation commands on the dependencies to accommodate the pyyaml version --- units/en/unit4/hands-on.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/units/en/unit4/hands-on.mdx b/units/en/unit4/hands-on.mdx index 5f101e87..492c34c8 100644 --- a/units/en/unit4/hands-on.mdx +++ b/units/en/unit4/hands-on.mdx @@ -152,6 +152,9 @@ And you can find all the Deep Reinforcement Learning models here 👉 https://hu ```bash !pip install -r https://raw.githubusercontent.com/huggingface/deep-rl-class/main/notebooks/unit4/requirements-unit4.txt +!echo 'Cython < 3.0' > /temp.txt +!PIP_CONSTRAINT=/temp.txt pip wheel pyyaml==6.0 +!pip install 'pyyaml==6.0' ``` ## Import the packages 📦