How to run Pip commands from CMD

后端 未结 7 1240
醉酒成梦
醉酒成梦 2020-11-28 02:16

As I understand, Python 2.7.9 comes with Pip installed, however when I try to execute a Pip command from CMD (Windows) I get the following error:



        
7条回答
  •  星月不相逢
    2020-11-28 02:35

    Newer versions of Python come with py, the Python Launcher, which is always in the PATH.

    Here is how to invoke pip via py:

    py -m pip install 
    

    py allows having several versions of Python on the same machine.

    As an example, here is how to invoke the pip from Python 2.7:

    py -2.7 -m pip install 
    

提交回复
热议问题