如何在树莓派上卸载MotionEye?已安装该软件但找不到卸载教程
Uninstalling MotionEye on Raspberry Pi
Hey there! Uninstalling MotionEye on your Raspberry Pi is totally straightforward—you just need to pick the steps that match how you originally installed it. Here are the most common scenarios:
1. If you used the official auto-install script (most users go this route)
This is the standard setup method from MotionEye's docs, so these steps cover most cases:
- First, stop the MotionEye service to avoid conflicts during uninstall:
sudo systemctl stop motioneye - Disable it from starting automatically on boot:
sudo systemctl disable motioneye - Remove the systemd service file:
sudo rm /etc/systemd/system/motioneye.service - Delete the core MotionEye installation files and configuration directory:
sudo rm -rf /etc/motioneye # Replace 3.x with your actual Python 3 version (check with `python3 --version`) sudo rm -rf /usr/local/lib/python3.x/dist-packages/motioneye - Optional: If you don't need the underlying
motionpackage (used for video capture), you can purge it too:sudo apt remove --purge motion
2. If you installed via APT package manager
If you used apt to install MotionEye (common on some Debian-based systems):
- Stop the running service first:
sudo systemctl stop motioneye - Purge the package and all its configuration files in one go:
sudo apt remove --purge motioneye - Clean up any leftover unused dependencies:
sudo apt autoremove
3. If you installed via pip
For the rare case where you used pip to install MotionEye:
- Stop and disable the service as before:
sudo systemctl stop motioneye sudo systemctl disable motioneye sudo rm /etc/systemd/system/motioneye.service - Uninstall the package via pip3:
sudo pip3 uninstall motioneye - Remove the configuration directory:
sudo rm -rf /etc/motioneye
Quick check to confirm your installation method
If you're not sure how you installed it, run this command to see if it's an APT package:
dpkg -l | grep motioneye
If you get output, you used APT. If not, it's either the script or pip method.
内容的提问来源于stack exchange,提问作者Rohan Sawant
相关产品推荐
相关产品推荐

