-1

I am having a nightmare tonight, I want to start learning some Django but I am running into quite a few problems while installing it.

I am following these tutorials - https://www.youtube.com/watch?v=UmljXZIypDc / https://www.youtube.com/watch?v=MEcWRk9w0t0

  1. I installed Python 3.7.2 and confirmed the installation by typing 'python --version' into Terminal/Command Prompt.

  2. I typed 'pip --version' into CMD and got this message in return "'pip' is not recognized as an internal or external command, operable program or batch file."

this is where I am stuck, I cannot continue any longer without completing this step, could anyone tell me where I am going wrong?

Thank you

edit: looks like it's a path issue, does anyone know how to do the following: how to I do this :

"Then add C:\Python37\Scripts path to your environment variable. Assumes that there is a Python37 folder in your C drive, that folder name may varied according to the installed python version Now you can install python packages by running pip install awesome_package_name"

808Squad
  • 11
  • 5
  • Try `python -m ensurepip` first. – Selcuk Nov 26 '19 at 06:51
  • how to I do this : "Then add C:\Python37\Scripts path to your environment variable. Assumes that there is a Python37 folder in your C drive, that folder name may varied according to the installed python version Now you can install python packages by running pip install awesome_package_name" – 808Squad Nov 26 '19 at 07:52
  • Possible duplicate of ['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) – phd Nov 26 '19 at 11:14
  • https://stackoverflow.com/search?q=%5Bpip%5D+not+recognized+as+an+internal+or+external+command – phd Nov 26 '19 at 11:14

3 Answers3

1

You need to uninstall python and when you're installing python again , check on add python to PATH.It will remove the error

Gagan Singh
  • 110
  • 9
0

Can you be more specific as to which OS you are using? You can use pip also like python -m pip .... The -m part loads a python module It might just not be installed since it is a python module. On linux, for example you have to install pip separately (would be sudo apt-get install python-pip).

mostueve
  • 21
  • 6
  • I am on windows 10 my friend – 808Squad Nov 26 '19 at 06:56
  • do you use powershell? if it is installed, try running ```pip install django``` from it, as suggested by sam. – mostueve Nov 26 '19 at 07:03
  • if you see ">>>" before what you are typing, you are in the python shell and pip install ... or something like that won't work :-) – mostueve Nov 26 '19 at 07:04
  • I have tried entering pip install django into powershell, here's what I get: pip: the term pip is not recognized as the name of a cmdlet – 808Squad Nov 26 '19 at 07:26
  • have you tried using ```python -m pip install django``` from powershell? – mostueve Nov 26 '19 at 07:30
  • also see here: https://stackoverflow.com/questions/30963446/how-to-install-packages-with-pip-in-windows-powershell for a possible PATH related issue. – mostueve Nov 26 '19 at 07:31
  • thanks, I think it maybe a path issue. I typed in 'python -m pip install django' and this is what I get: https://prnt.sc/q253gb – 808Squad Nov 26 '19 at 07:41
  • you can just add the directory to the PATH, so you don't have import issues later on :-) – mostueve Nov 26 '19 at 07:43
0

Run pip install django from windows command prompt instead of python shell.

Installing Django with pip

follow these to know more. https://docs.djangoproject.com/en/2.2/topics/install/ hope you will get it.

sam
  • 11
  • 5
  • how to I do this : "Then add C:\Python37\Scripts path to your environment variable. Assumes that there is a Python37 folder in your C drive, that folder name may varied according to the installed python version Now you can install python packages by running pip install awesome_package_name" – 808Squad Nov 26 '19 at 08:04