Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip errors
#1
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?
Reply
#2
pip is a command you run from your C:\ prompt, not from within python.
Reply
#3
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.
Reply
#4
@bowlofred, @MK_CodingSpace

Thanks for the explanation. I did say I was a noob Big Grin
Reply
#5
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.
Reply
#6
(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 >>>)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#7
cheers, thats sorted it
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020