6

How do I install the YAML package in Pycharm? I want to use it for a python 3.8 (or 3.9) project. When trying to install the package via the project settings I get the following error:

ERROR: Could not find a version that satisfies the requirement yaml

Alternatively I tried to search for any YAML package available via the command window by typing pip search yaml. Then I get the following error:

ERROR: XMLRPC request failed [code: -32500]

Any advice?

Thanks

5
  • PyPI's API is currently disabled, the search won't work, see status.python.org Commented Feb 4, 2021 at 11:59
  • What is the name of the package you're trying to install? Commented Feb 4, 2021 at 12:00
  • Does this answer your question? How do I install the yaml package for Python? Commented Feb 4, 2021 at 12:01
  • The package is called "yaml" (no further extensions to the naming) It´s used in a example python project from github. Commented Feb 4, 2021 at 12:23
  • 1
    That example looks wrong, I can't find that package: ERROR: No matching distribution found for yaml. Please share the link to the project. Commented Feb 4, 2021 at 12:32

1 Answer 1

13

pip install pyyaml

I think that this is what you are looking for: https://pypi.org/project/PyYAML/

It gets imported as import yaml

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.