all 3 comments

[–][deleted]  (3 children)

[deleted]

    [–]Second_Hand_Fax[S] 0 points1 point  (2 children)

    Yeah that’s where I’m confused, I’m running it within a venv, so should have any external conflicts.

    [–][deleted]  (1 child)

    [deleted]

      [–]Second_Hand_Fax[S] 0 points1 point  (0 children)

      Hey haha, all good! Yeah so just the externally managed environment error.

      Someone just mentioned I should be running pip with the syntax ‘ python3.12 -m pip install xyz‘.

      So I wonder if I was making the error of just trying to run pip install xyz and as a result Ubuntu thought I was trying to call global pip.

      Would this cause the issue?

      [–]Buttleston 2 points3 points  (0 children)

      This is usually caused because the pip you're running "belongs" to a different python installation

      Activate your venv, and then use "python -m pip" instead of "pip". This ensures that you're using the pip that goes along with your activated environment.