-2

Trying to install Django. Tried copying pip's address to the PATH in environment variables. Any ideas?

C:\Users\91700>pip --version 'pip' is not recognized as an internal or external command, operable program or batch file.

IounmS
  • 19
  • 1
  • 3
  • 4
    Does this answer your question? ['pip' is not recognized as an internal or external command](https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command) –  May 17 '22 at 10:57
  • Have you installed Python via `Microsoft Store`? – Dominik Lovetinsky May 17 '22 at 11:47

2 Answers2

1

You can try using

py -m pip install Django
vimuth
  • 5,064
  • 33
  • 79
  • 116
  • 5
    please explain why this solves the problem. – MoRe Aug 09 '22 at 13:12
  • I understand that you're excited about `py -m pip install` ing stuff. Maybe you just learned about it. I don't know. But you've submitted several such answers with no explanation. (No, "it worked for me" is not an explanation.) To make decent answers, please actually address the problem presented in the questions. – General Grievance Aug 09 '22 at 15:14
0

I think you need to type:

python -m pip <args>

Because pip is not in the Path Environment Variables

  • contains the location of pip? – IounmS May 17 '22 at 13:09
  • These are the two response I got for that- 'python' is not recognized as an internal or external command, operable program or batch file. AND ...site-packages\pip' is not recognized as an internal or external command, operable program or batch file. – IounmS May 17 '22 at 14:32
  • @user12192649 ist the what you want to do with pip, like: `pip install numpy` – Dominik Lovetinsky May 17 '22 at 14:44
  • Okay, I got the same errors that I posted previously, I dont understand what the issue is – IounmS May 18 '22 at 04:53
  • Have you tried using the powershell? – Dominik Lovetinsky May 18 '22 at 05:10
  • Not sure what you mean. I'm relatively new to this form of errors. I've mostly scripted on spyder and vscode. If possible to type out a step-by-step, I'd appreciate it :) – IounmS May 18 '22 at 05:13
  • You are using Windows right? Search for the powershell in the searchbar. Try to execute the command `python --version` there – Dominik Lovetinsky May 18 '22 at 05:15
  • I got this when I ran it in powershell python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + python --version + ~~~~~~ + CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException – IounmS May 18 '22 at 06:16
  • Okay It's fixed. I reinstalled python IDE. The IDE's path was wrong in the enivronment variables. That's why it wasn't recognizing. Thanks for your help though. Put me in the right train of thought – IounmS May 18 '22 at 12:22