eeconwell / hello-world

this is my first repository on gihub.com
0 stars 0 forks source link

Help with Python Pagackes/Modules #2

Open eeconwell opened 4 years ago

eeconwell commented 4 years ago

hello everyone, I am very new to Python (and GitHub) and seem to be struggling to install the correct packages and modules I need. I've been following direction from "automate the boring stuff" and "python crash course" but simply throwing the pip --user or the modules command in doesnt work return anything other than errors. Thank you for your help and guidance and apologize in advance if this isnt the correct way to use GitHub.

image

ehmatthes commented 4 years ago

Hi, I'm the author of Python Crash Course. I found this thread issue because I do a quick google search most days for any open questions mentioning the book title. GitHub isn't really the best place to ask for help with a question like this, because nobody's really watching this project. It's really good to learn how to put a project on GitHub, but you're probably not going to get much help on a repository that no one is following. I always recommend the r/learnpython community, because it's friendly and people tend to respond to well-structured questions quickly and effectively.

That said, what you've done in the screenshot is start a Python terminal session. The >>> prompt means you can enter Python code, and it will run each line as soon as you press enter. What did you think the modules command would do? That's not a command in Python, so you're getting a "not defined" NameError.

If you want to pip install something, do it at your regular windows prompt (>):

> python -m pip install --user requests

That should work on your system.

I'm not sure I'll be notified if you respond to my comment, so if you need more help you should ask somewhere like r/learnpython.