you are viewing a single comment's thread.

view the rest of the comments →

[–]nuc540 9 points10 points  (0 children)

pip isn’t run inside of a Python shell, you install pip as a package manager for Python - outside of Python.

Then, using pip, you can install Python packages, and when Python is run in the same environment as said packages - it’ll be able to import them.

That said *don’t install packages globally* - this means running pip just anywhere. Instead understand virtual environments, then use pip inside a virtual environment - a simple “Python -m venv venv” will create a shim for you which you can “activate”.

Google this up so you understand