Python Forum

Full Version: pip errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Am using Windows 10 and have installed Python 3.9. I am an absolute beginner and am trying to explore what packages are installed. When I try:

>>> pip list
  File "<stdin>", line 1
    pip list
        ^
Syntax Error: invalid syntax
I get the same error if I try
pip freeze
or
pydoc modules
Can anyone guide me in this please?
pip is a command you run from your C:\ prompt, not from within python.
Type cmd to open your command prompt, and from there install any modules using pip command. Doesn't matter if the module is already installed or not. If installed already it will let you know.
@bowlofred, @MK_CodingSpace

Thanks for the explanation. I did say I was a noob Big Grin
I have the same problem (total noob) but after reading this , i still do not understand what the solution is, i have tried typing both ' cmd ' and ' C:\ ' and still get errors.
(Nov-28-2020, 08:02 PM)jose_harkhan Wrote: [ -> ]I have the same problem (total noob) but after reading this , i still do not understand what the solution is, i have tried typing both ' cmd ' and ' C:\ ' and still get errors.
Open cmd/terminal and use pip there. Not from python shell (that is when you have >>>)
cheers, thats sorted it