Code Monkey home page Code Monkey logo

Comments (2)

antoninbas avatar antoninbas commented on September 27, 2024

It looks like the same error occurs when using pip install --user ... instead of sudo pip install ....
IMO the best option would be to use pipx as suggested, or a virtual env that you manage directly.
Or you can just export PIP_BREAK_SYSTEM_PACKAGES=1 in the correct profile file, and then forget about it. You won't have to use --break-system-packages explicitly every time, and you can keep using pip as before.

from ptf.

jafingerhut avatar jafingerhut commented on September 27, 2024

I did not know about the environment variable PIP_BREAK_SYSTEM_PACKAGES.

From some experimentation on an Ubuntu 23.04 system, it seems that only works if I use sudo -E pip install ..., so it is just as troublesome in requiring that all install scripts are edited, as any of the other methods you mention.

I may see what it takes to remove the sudo from all of the sudo pip3 ... commands everywhere from all p4lang install scripts in my local copies -- there probably aren't more than half a dozen or so occurrences.

from ptf.

Related Issues (20)

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.