1、from sklearn.cross_validation import train_test_split
报错:
解决方法:
换一种方法导入from sklearn.model_selection import train_test_split
2、 cv2.threshold(cv_img,50,1,cv2.cv.CV_THRESH_BINARY_INV,cv_img)
报错:
解决方法:
把方框里面的 cv.CV_ 删掉
3、DataFrame’ object has no attribute ‘to_numpy’
解决方法:
pip install -U pandas更新一下库就可以啦