Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pip not found on my windows machine.

Then i try python -m pip install

Python is not found, too.

Then i tried pip3 install.

It worked.

I should try with python3 -m pip3 or python3 -m pip install ?

Confusing.



For a recent python install, python should be available under `python`, but you should also have the `py` utility installed - this is normally helpful in selecting from a set of versions. If neither of these resolve, the first step is probably to reinstall python

With regard to installing packages, I think the general rule is that `python -m pip` is best practice, because it assures that the python you install packages to is the same one you're planning to run them on


Tbh If pip isn’t found nothing much is going to work. I would fix that first, and although it’s an overhead I would learn about virtual environments too because will save pain fairly quickly.


py -3 -m pip




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: