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

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

    In Windows, open cmd and find the location of PYTHON_HOME using where python. Now add this location to your environment variable PATH using:

    set PATH=%PATH%;\Scripts
    

    Or refer to this.


    In Linux, open a terminal and find the location of PYTHON_HOME using which python. Now add the PYTHON_HOME/Scripts to the PATH variable using:

    PATH=$PATH:\Scripts
    export PATH
    

提交回复
热议问题