-1

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.

1 Answers1

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? – user12192649 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. – user12192649 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 – user12192649 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 :) – user12192649 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 – user12192649 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 – user12192649 May 18 '22 at 12:22