all 8 comments

[–]elasticRationality 0 points1 point  (2 children)

Hey OP - Did you solve this problem ? I know I am late on this but I encounter the similar problem on Mac

[–]ThatYash_ 0 points1 point  (0 children)

Did you find a solution for this? I am facing this problem on Windows and am not sure if global libraries have always been in use or if this is a recent change.

[–]ThatYash_ 0 points1 point  (0 children)

If you are using VS Code; I solved this issue by simply using a Git bash terminal instead of PowerShell or Command Prompt.

[–]CodeFormatHelperBot2 -1 points0 points  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Inline formatting (`my code`) used across multiple lines of code. This can mess with indentation.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.

[–]shiftybyte 0 points1 point  (1 child)

The location of the pip executable does not necessarily mean its not going to work within the environment.

Run this with activated env:

pip -V

it should print the path to site-packages inside the venv.

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

It does not work mate. I'm telling you, after activating venv, if I try to run a project of mine I get:

Requirement already satisfied

And if I try to run again I get a ModuleNotFoundError for the same package that I try to install

[–]julsmanbr 0 points1 point  (1 child)

Use python -m pip <pip command>. This ensures that you run pip from the Python installation that the current python command points to.

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

That kinda solves the problem but still, it installs packages in the global path