You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

988 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Linux/Mac os 环境

配置文件位置在 ~/.pip/pip.conf如果不存在创建该目录和文件

mkdir ~/.pip
vi ~/.pip/pip.conf

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

[install]
trusted-host = pypi.douban.com

Windows环境

需要在当前对用户目录下C:\Users\Administrator\pip 创建一个 pip.ini,内容:

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

[install]
trusted-host = pypi.douban.com

查看python3版本

python3 --version

Python 3.7.9 [银河麒麟V10,并不免费,不是以后的首选。免费的还是用华为欧拉]

查看操作系统版本

cat /proc/version

Linux version 4.19.90-25.18.v2101.ky10.x86_64 (KYLINSOFT@COMPILE.MACHINE) (gcc version 7.3.0 (GCC)) #1 SMP Thu Aug 4 15:57:42 CST 2022

查看 镜像地址:

$ pip3 config list

global.index-url='https://pypi.douban.com/simple'
install.trusted-host='pypi.douban.com'