Blogger Information
Blog 29
fans 0
comment 0
visits 24030
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
升级pip并安装库
easy
Original
678 people have browsed it

今天用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.conf

b. 在上述文件中添加或修改:

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

接着升级pip

cmd下输入:python -m pip install --upgrade pip

ok

接着就可以继续使用pip install xxxxx 安装库了



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post