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

前端 未结 30 2619
迷失自我
迷失自我 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:25

    I think from Python 2.7.9 and higher pip comes pre installed and it will be in your scripts folder.

    So you have to add the "scripts" folder to the path. Mine is installed in C:\Python27\Scripts. Check yours to see what your path is so that you can alter the below accordingly. Then go to PowerShell, paste the below code in PowerShell and hit Enter key. After that, reboot and your issue will be resolved.

    [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\Scripts", "User")
    

提交回复
热议问题