How to run Pip commands from CMD

后端 未结 7 1234
醉酒成梦
醉酒成梦 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:51

    Simple solution that worked for me is, set the path of python in environment variables,it is done as follows

    1. Go to My Computer
    2. Open properties
    3. Open Advanced Settings
    4. Open Environment Variables
    5. Select path
    6. Edit it

    In the edit option click add and add following two paths to it one by one:

    C:\Python27
    
    C:\Python27\Scripts
    

    and now close cmd and run it as administrator, by that pip will start working.

提交回复
热议问题