公司要求Python自动化,结果不管是pycharm的settings无法安装。
用pip安装之前下载的PyYAML的包,结果报错提示:
ERROR:PyYAML******** is not a supported wheel on this platform
意思就是这个版本和Python版本不支持。然后我在PyYAML官网下载与我Python匹配的包,安装,解决问题。
官网地址:PyYAML · PyPI
具体下载:
输入网址打开后,点Download files.
选择与自己系统匹配的包
我是Windows64位,Python是3.9.所以选择了PyYAML-6.0-cp39-cp39-win_amd64.whl