An electric vehicle includes a vehicle frame, a frame connector, a battery compartment, a battery stopper and an anti-connection portion. The battery compartment is provided for receiving a battery unit which has a cable connector connected thereto by a power cable. The battery stopper is mounted to the vehicle frame and movable between a closed position where the battery unit is stopped from removing and an open position where the battery unit is removable. The anti-connection portion is provided on the battery stopper. When the battery stopper is placed in the open position, the anti-connection portion is located at an anti-connection position thereby to prevent the cable connector from being connected to the frame connector. When the battery stopper is placed in the closed position, the anti-connection portion is spaced away from the anti-connection position thereby to allow the cable connector to be connected to the frame connector.