I need a help with PyYAML

I´m using Python 3.13;7. As alternative i tryed to update PyYAML and the ‘wheel‘ packege (using the command pip install --upgrade "setuptools>=70.1"). But, the error persists. Can anybody help me ?

Are you installing PyYAML with pip for a Python env, or with conda for e.g. Jupyter?

I overcame one error in building from source, by installing cython (although I then hit a lniking error - see below).

It installs just fine from a wheel from PyPi too though. Is compilation required for you?

C:\...\venvs\PyYAML_sdist\pyyaml\yaml\_yaml.h(2): fatal error C1083: Cannot open include file: 'yaml.h': No such file or directory

(PyYAML_sdist) C:\...\venvs\PyYAML_sdist\pyyaml\yaml>dir

 Directory of C:\...\venvs\PyYAML_sdist\pyyaml\yaml

18/02/2026  20:28    <DIR>          .
18/02/2026  20:28    <DIR>          ..
18/02/2026  20:28         1,398,534 _yaml.c
18/02/2026  20:24               324 _yaml.h

Including your initial prompt would be useful to offer context. Also you can include terminal output by including it in “```” marks, which makes it possible for us to copy-paste.

Can you try creating a new anaconda env with only pyyaml in it (as a specified dependency)? (Also do specify the python version when creating the env.)