Python noob here.
I need to install the microbit
library for MicroPython. I think Python uses "pip" for package management. I think its supposed to just work for me in 2020 but it doesn't. I can't get pip recognised on Windows 10, I've tried:
# From Windows 10 PowerShell
> py --version
Python 3.7.0
> pip
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program....etc.
> py -3 -m ensurepip
Looking in links: C:\Users\username\AppData\Local\Temp\tmpwmmqz_qq
Requirement already satisfied: setuptools in c:\users\username\appdata\local\programs\python\python37\lib\site-packages (39.0.1)
Requirement already satisfied: pip in c:\users\username\appdata\local\programs\python\python37\lib\site-packages (10.0.1)
> py pip
(null): can't open file 'pip': [Errno 2] No such file or directory
I also downloaded a get-pip.py
script from another SO answer, ran it, it exited without output but doesn't seem to have done anything.
> py .\get-pip.py
>
After which pip
and py pip
are still not recognised.
What am I missing? Thanks.