I bought raspberry pi camera and it works, but when i use python to use the camera return Error: cannot import name picamera. I have install python3-picamera.and this is python programming:
from picamera import PiCamera
import time
camera = PiCamera()
camera.start_preview()
time.sleep(10)
camera.capture('/home/pi/image.jpg')
camera.stop_preview()