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

前端 未结 2 1996
你的背包
你的背包 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

提交回复
热议问题