Coder Social home page Coder Social logo

Comments (5)

tolnai avatar tolnai commented on July 2, 2024

So, it's working if I use this:

pip3 install --upgrade pip --break-system-packages
pip3 install -r requirements.txt  --break-system-packages

But I was wondering if this is what should be added to the docs, or is there a way to use venv.

from rpi-sensehat-mqtt.

tolnai avatar tolnai commented on July 2, 2024

Btw, I documented my own setup guide here:

from rpi-sensehat-mqtt.

cgomesu avatar cgomesu commented on July 2, 2024

thanks for the heads up. yep. pip won't install packages if there's another package manager taking care of them, as it is the case in most OSes (e.g., apt for Debian). there are a few solutions though. you can install them via your OS pkg manager, use a virtual env or like you said, let pip handle the global install by using the --break-system-packages flag.

But I was wondering if this is what should be added to the docs, or is there a way to use venv.

it should. if you don't mind, please feel free to make the changes and push them to this repo via a PR.

Btw, I documented my own setup guide here:

where? think you forgot to post the link.

from rpi-sensehat-mqtt.

tolnai avatar tolnai commented on July 2, 2024

Sorry, link was badly formatted, https://github.com/tolnai/matrix/blob/main/sensehat.md.

I couldn't figure out how to make that lib work with venv, so I just appended that flag to 2 commands and that's it.

from rpi-sensehat-mqtt.

cgomesu avatar cgomesu commented on July 2, 2024

I couldn't figure out how to make that lib work with venv, so I just appended that flag to 2 commands and that's it.

if you want to learn about the details: https://peps.python.org/pep-0668/

Sorry, link was badly formatted, https://github.com/tolnai/matrix/blob/main/sensehat.md.

404ed... 😞

from rpi-sensehat-mqtt.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.