Why fatal error: 'yaml.h' file not found when installing PyYAML?

前端 未结 2 2005
你的背包
你的背包 2021-02-12 10:35

I\'m trying out downloading PyYAML and install it following the instructions here http://pyyaml.org/wiki/PyYAML

So I downloaded the ZIP package: http://pyyaml.org/downlo

相关标签:
2条回答
  • 2021-02-12 11:01

    You can solve the issue by reinstalling the pyyaml package after adding required dependent libraries. Following are the steps:

    1. Uninstall pyyaml

    pip uninstall pyyaml

    1. Install below packages

    apt-get install libyaml-dev libpython2.7-dev

    1. Install pyyaml again

    pip install pyyaml

    0 讨论(0)
  • 2021-02-12 11:22

    In MacOS the following solved the problem:

    pip3 uninstall PyYaml
    pip3 install PyYaml==5.2
    
    0 讨论(0)
提交回复
热议问题