Error installing the pyyaml requierement

I was trying to deploy my streamlit app and the following error occured. Note that I have also tried including the PyYAML liabrary.

ERROR: Could not find a version that satisfies the requirement yaml (from versions: none)
ERROR: No matching distribution found for yaml

Then why is pip complaining about not finding yaml? There might be something wrong in your requirements file.

Hi and thank you for your response. This is what the requirements file looks like.
image
Note that I have tried specifying the versions but the same error occurs.
Moreover, the name of the file is requirements.txt

I successfully deployed an application with that requirements file. Of course I had to manually translate the pixels to text and that is prone to errors. Yet I don’t think the problem lies there.

So there is probably an issue with your requirements, but it doesn’t seem to be in that file. Note that there are several ways to specify requirements in streamlit cloud, requirements.txt is just one of them.

Hey @ezaou ,

Given the fact that @Goyo had been able to recreate and deploy the requirements.txt file without any error, I would assume the package’s version on Streamlit Cloud IS NOT the same version as your code’s version.

Please use pip freeze to view the current version of PyYaml and update your requirements.txt accordingly.

Let me know if this works!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.