python2.7 pip install pyyaml 安装出现错误

发布时间 2023-09-27 11:54:30作者: NLazyo

conda 环境 python2.7 

安装 pyyaml: pip install pyyaml

错误如下:

 ERROR: Command errored out with exit status 1:    command: bin/python2.7 /python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp4If62U      

估计是依赖的包没有安装。

解决办法:

使用conda 安装成功

 conda install pyyaml

import yaml成功