Python 3.6安装yaml时报"AttributeError: module 'pip' has no attribute 'main'"和“Non-zero exit code”错误

1、Python 3.6安装yaml时一开始报AttributeError: module 'pip' has no attribute错误,根据网上提供的解决方法修改Pycharm安装目录D:Program Files (x86)JetBrainsPyCharm 2017.1helpers目录下的packaging_tool.py文件内容(参考:https://www.cnblogs.com/TaleG/p/9187170.html)

2、再次尝试执行pip install yaml时仍提示Non-zero exit code 错误,此问题主要是因为找不到对应的yaml版本。Python3.X以后安装yaml模块时需要安装PyYAM,pip install PyYAM

原文地址:https://www.cnblogs.com/youqingyan/p/9358476.html