简体   繁体   中英

ImportError: No module named six [Windows]

import numpy as np
import cv2
from matplotlib import pyplot as plt

img = cv2.imread('test.jpg',0)       
orb = cv2.ORB()   
kp = orb.detect(img,None) 
kp, des = orb.compute(img, kp)   
img2 = cv2.drawKeypoints(img,kp,color=(0,255,0), flags=0)
plt.imshow(img2),plt.show()

I download six 1.9.0 from https://pypi.python.org/pypi/six . But I copy it to "C:\\Python27\\Lib\\site-packages\\matplotlib" directory. But it doesn't work. I got the error:

ImportError: No module named six

If you have pip configured, you can run

$ pip install six

or (for python 3)

$ pip3 install six

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM