'pip' is not recognized as an internal or external command

前端 未结 30 2629
迷失自我
迷失自我 2020-11-21 05:41

I\'m running into a weird error when trying to install Django on my computer.

This is the sequence that I typed into my command line:



        
30条回答
  •  不思量自难忘°
    2020-11-21 06:26

    As of now, version 3.7.3 I had a little bit of an issue with getting the right system variable.

    Try this:

    1. Type 'start %appdata%' in cmd.

    2. After that file explorer should pop up in '../AppData/Roaming'.

    Go back one directory and navigate to 'Local/Programs/Python/Python37-32/Scripts'.

    NOTE: The version number may be different so if you copy and paste the above file path it could not work.

    After you do this you now have the correct location of your downloaded Python. Copy your file path by selecting the whole directory in the address bar.

    Once you do that click the start icon and navigate to the Control Panel → System and SecuritySystem. Then click "Advanced System Settings" on the left side of the panel.

    Once there, click Environment Variables on the bottom right and there will be two boxes, an upper and a lower box. In the upper box: Click on the 'Path' Variable and click Edit located on the right. Click New and paste your directory Path. It should look something like this:

    Click OK three times, open a new window of cmd and type: pip. See if it works.

提交回复
热议问题