升级pip并安装库【图文】 | 您所在的位置:网站首页 › pip更新所有库 › 升级pip并安装库【图文】 |
今天用pip安装一些常用库,然后出现以下这段代码。 需要升级一下pip WARNING: You are using pip version 20.3.1; however, version 21.3.1 is available.You should consider upgrading via the 'c:\program files\python\python.exe -m pip install --upgrade pip' command参考阿里巴巴开源镜像站 首先切换使用国内阿里巴巴的pypi镜像源 a. 找到下列文件(windows目录:C:\Users\Administrator) ~/.pip/pip.confb. 在上述文件中添加或修改: [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com 接着升级pipcmd下输入:python -m pip install --upgrade pip ok 接着就可以继续使用pip install xxxxx 安装库了 |
CopyRight 2018-2019 实验室设备网 版权所有 |