原创 用conda安裝包出現The environment is inconsistent, please check the package plan carefully

用conda安裝包時一直出現The environment is inconsistent, please check the package plan carefully 最近在anaconda裏新創建了一個環境,用conda安

原创 用Matplotlib給子圖添加圖例時出錯ax.legend() TypeError zip argument #2 must support iteration

畫圖時添加圖例 import matplotlib.pyplot as plt line_up, = plt.plot([1,2,3]) plt.legend(line_up, 'Up') plt.show() 報錯zip ar

原创 讀取txt報錯ValueError: invalid literal for float() in Python

ValueError: invalid literal for float() in Python 讀取txt文件 a=np.loadtxt(filepath,delimiter=',') 讀取txt文件時出現錯誤ValueError

原创 could not determine a constructor for the tag 'tag:yaml.org,2002:python/unicode'

照着官網教程安裝anaconda3之後,打開時出現could not determine a constructor for the tag ‘tag:yaml.org,2002:python/unicode’ 錯誤 在網上看了一圈,發