PermissionError: pip upgrade from 8.1.1 to 8.1.2

前端 未结 2 771
北荒
北荒 2021-01-27 16:37

I am trying to upgrading pip from 8.1.1 to 8.1.2 . But it showing following \'PermissionError: [WinError 5] Access is denied: How to upgrade pip?

C:         


        
相关标签:
2条回答
  • 2021-01-27 17:12

    Upgrade PIP on your default python environment required sudo, i.e. in Windows term, you must your start command prompt as administrator mode. In fact, this is not recommended.

    You don't need to use sudo/'Windows adminsitrators" if you setup virtualenv. It is python best practice to setup Python virtualenv , So you can separate the pip package required for individual project. For windows, it is similar setup.

    Nevertheless, if you have decent PC with enough RAM, just install Virtualbox and deploy ubuntu. This way, your don't need to deal with windows python package installation/upgrade that overlook by developer (although all python package suppose to work out of the box) .

    0 讨论(0)
  • 2021-01-27 17:22

    open your cmd with admin priviliges. for that right click in icon and select open with administrator.

    0 讨论(0)
提交回复
热议问题