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)\JetBrains\PyCharm 2017.1\helpers目錄下的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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM