Help for new Python user

Brand new user here trying to follow instructions in book regarding loading packages. The instructions are to enter pip -m install numpy pandas matplotlib, but I get a syntax error. Being absolutely new to programming and Python, I am at a loss what to do or what is wrong with the book’s instructions. How am IO to learn if the @#$@%^ book is wrong? Frustrating!

Thanks for any help or advise.
Gerald

Hello! Is this the issue you’re running into?

1 Like

pip install numpy

try the same for the other ones, one at a time

Thank you, but these replies are in a foreign language to me. I am truly sorry!

What is the (-m) before Install mean? Suggestions given me delete using it.

This is so frustrating for me. Time after time I have tried to learn Python and ran into something that the book says to do but fails. I don’t remember how many times that situation has occurred and I do not have anyone or anywhere to seek help. Somewhere there should be a site for simpleminded old folks to turn to.

Thank everyone for responding. I’ll keep digging.

Jerry

I’m a new user as well and I have found a tutorial I’m doing uses 2 versions of Python. It has 100s of chapters and only some chapters were updated, and Qt only works with Python 3.9.

It seems things can change quickly so for best results, make sure your book, or tutorial, is no more than 2 years old.

You can translate the replies by copying and pasting the plain text into https://translate.google.com/

There is also a browser addon that will translate it for you also. You will have to look around for that.

You can get help with pip by typing at a prompt: pip -h. pip in Python 3.9 does not say what -m does. Maybe it’s no longer used.

pip has this syntax: pip <command> <options> so -m is in the wrong place in your example. See pip -h to see the commands and options.

I’m pretty sure OP didn’t literally mean a foreign language, but was simply voicing a complaint about not understanding the technical terms etc.

There are certain things that new programmers are expected to know about how to use a computer that programming teachers tend to take for granted. In many cases, this is stuff that, once upon a time, basically everyone had to know in order to get the computer to do much of anything at all. But in 2024, normal use of a computer by ordinary users never gets anywhere near that stuff, and basically nobody is teaching it specifically.

I’m not aware of Pip ever having had a -m option. I’m pretty sure we’re talking here about a -m before pip, when running Pip as a module, via Python: python -m pip .... The example command in the first post is simply mistaken.

1 Like