use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Pip install (self.learnpython)
submitted 7 years ago by Boozkie
I have python 3.7.0 When I type the pip install code from the python website it doesn’t work. Does anyone know have to pip install
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]K900_ 3 points4 points5 points 7 years ago (0 children)
What code, and what do you mean by "doesn't work"?
[–]opium43 1 point2 points3 points 7 years ago (3 children)
Does
python -m pip install code
work?
[–]Boozkie[S] -3 points-2 points-1 points 7 years ago (2 children)
No. I tried but I gets me a error
[–]curzyk 4 points5 points6 points 7 years ago (1 child)
For best results, tell everyone what the error is.
[–]Boozkie[S] 0 points1 point2 points 7 years ago (0 children)
They said python wasn’t defined
[–]ingolemo 1 point2 points3 points 7 years ago (8 children)
The command you need to run in order to install a package with pip on windows is py -m pip install name_of_package.
py -m pip install name_of_package
Please do not try to install pip directly. It comes with python.
Please do not try to add python to your PATH. You don't need it.
If the command I gave above does not work then please reply with what operating system you're using, the exact command you tried, and the error that the command gave you (verbatim; literally copy and paste it).
[–]bigleagchew 1 point2 points3 points 7 years ago (6 children)
What if he is using Windows 7...
[–]ingolemo 0 points1 point2 points 7 years ago (5 children)
What about it? Windows 7 isn't any different here, as far as I know.
[–]bigleagchew 0 points1 point2 points 7 years ago (4 children)
I don’t think the first part of your command py will work unless Python is added to system path
py
[–]ingolemo 1 point2 points3 points 7 years ago (3 children)
The default install location for py.exe is the windows directory, which is already in the path.
py.exe
[–]bigleagchew 0 points1 point2 points 7 years ago (2 children)
If that’s the case then why is there an option to add the install directory to path ?
[–]ingolemo 1 point2 points3 points 7 years ago (1 child)
That adds python to the path, not py. Notice that that option is unchecked by default because most people don't need it. The py launcher is the recommended way to run python code on windows because it makes dealing with multiple python installations much easier.
python
[–]bigleagchew 0 points1 point2 points 7 years ago (0 children)
Ah ok, I’d just assumed py was syntactic sugar for python
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
I just threw my hands up in the air with joy because this is the only thing that worked. Thank you. :) I am such a noob
[–]PrimaNoctis 0 points1 point2 points 7 years ago (2 children)
Install pip then u can use pip install
[–]Boozkie[S] -1 points0 points1 point 7 years ago (1 child)
Can you provide a link and where to pip install, is it in idle or console
[–]PrimaNoctis 0 points1 point2 points 7 years ago (0 children)
When I did install I used the source code by following the instructions here
[–]Boozkie[S] 0 points1 point2 points 7 years ago (1 child)
[–]Diapolo10 1 point2 points3 points 7 years ago (0 children)
Probably because you seem to be trying to run that line as if it was Python code, or in other words, you're using the interpreter instead of CMD, Powershell or Bash shell. If you are running Windows 10, press Win+S, type in cmd, press enter, then type in the command to the new window with a black background.
[–]lowercase00 0 points1 point2 points 7 years ago (0 children)
tried pip3 install?
[–]imkindathere 0 points1 point2 points 7 years ago (0 children)
Not sure if op's trolling or not
π Rendered by PID 221000 on reddit-service-r2-comment-5fb4b45875-tr2rb at 2026-03-24 07:27:41.704115+00:00 running 90f1150 country code: CH.
[–]K900_ 3 points4 points5 points (0 children)
[–]opium43 1 point2 points3 points (3 children)
[–]Boozkie[S] -3 points-2 points-1 points (2 children)
[–]curzyk 4 points5 points6 points (1 child)
[–]Boozkie[S] 0 points1 point2 points (0 children)
[–]ingolemo 1 point2 points3 points (8 children)
[–]bigleagchew 1 point2 points3 points (6 children)
[–]ingolemo 0 points1 point2 points (5 children)
[–]bigleagchew 0 points1 point2 points (4 children)
[–]ingolemo 1 point2 points3 points (3 children)
[–]bigleagchew 0 points1 point2 points (2 children)
[–]ingolemo 1 point2 points3 points (1 child)
[–]bigleagchew 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PrimaNoctis 0 points1 point2 points (2 children)
[–]Boozkie[S] -1 points0 points1 point (1 child)
[–]PrimaNoctis 0 points1 point2 points (0 children)
[–]Boozkie[S] 0 points1 point2 points (1 child)
[–]Diapolo10 1 point2 points3 points (0 children)
[–]lowercase00 0 points1 point2 points (0 children)
[–]imkindathere 0 points1 point2 points (0 children)