MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Error installing MMPM

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 502 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rohredd
      last edited by

      I get an error when installing, I am a newbie, see error below

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Wed Mar 5 22:42:06 2025
      david@raspberrypi:~ $ python3 -m pip install --upgrade mmpm
      error: externally-managed-environment

      × This environment is externally managed
      ╰─> To install Python packages system-wide, try apt install
      python3-xyz, where xyz is the package you are trying to
      install.

      If you wish to install a non-Debian-packaged Python package,
      create a virtual environment using python3 -m venv path/to/venv.
      Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
      sure you have python3-full installed.
      
      For more information visit http://rptl.io/venv
      

      note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
      hint: See PEP 668 for the detailed specification.
      david@raspberrypi:~ $

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @rohredd
        last edited by

        @rohredd yes, python has taken to using a virtual env to enable loading different libraries for different apps on the same system

        i am not a python programmer, so i dont know how to fix this, maybe google can help
        “create python virtual environment”

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          r0t
          last edited by

          I hade the same problem but i could solve it with some good old reading

          https://www.raspberrypi.com/documentation/computers/os.html#python-on-raspberry-pi

          I used the per-user enviroment

          Use the following command to create a virtual environment in a hidden folder in the current user’s home directory:

          python -m venv ~/.env
          

          Run the following command from any directory to start using the virtual environment:

          source ~/.env/bin/activate
          

          You should then see a prompt similar to the following:
          (.env) $:

          To leave the virtual environment, run the following command from any directory:

          deactivate
          

          When you are inside your virtual environment you can install mmpm an can also use the whole commands like mmpm version ect.

          Hope this helps

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @r0t
            last edited by

            @r0t yes, AND you need to activate the virtual environment you installed stuff in, before you use it…

            like in scripts started by pm2

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy