+1 vote
in Operating Systems by (14.2k points)

I am installing the YAML Python package on the Ubuntu machine using the pip command (pip install yaml). However, it gives the following error. How can I fix it?

ERROR: Could not find a version that satisfies the requirement yaml (from versions: none)

ERROR: No matching distribution found for yaml

1 Answer

+3 votes
by (64.6k points)
selected by
 
Best answer

You have used the wrong package name, so you are getting an error message —no matching distribution. The correct package is pyyaml

Run the following command on the terminal to install the YAML package.

pip install pyyaml


...