Python Forum
pip errors - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pip errors (/thread-31152.html)



pip errors - Paulo_R - Nov-25-2020

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?


RE: pip errors - bowlofred - Nov-25-2020

pip is a command you run from your C:\ prompt, not from within python.


RE: pip errors - MK_CodingSpace - Nov-25-2020

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.


RE: pip errors - Paulo_R - Nov-25-2020

@bowlofred, @MK_CodingSpace

Thanks for the explanation. I did say I was a noob Big Grin


RE: pip errors - jose_harkhan - Nov-28-2020

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.


RE: pip errors - buran - Nov-28-2020

(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 >>>)


RE: pip errors - jose_harkhan - Nov-29-2020

cheers, thats sorted it