“Pip源的查看和配置”的版本间的差异
		
		
		
		
		
		跳到导航
		跳到搜索
		
				
		
		
	
| Jihongchang(讨论 | 贡献) | Jihongchang(讨论 | 贡献)  | ||
| 第5行: | 第5行: | ||
| [install]   | [install]   | ||
| trusted-host=mirrors.aliyun.com | trusted-host=mirrors.aliyun.com | ||
| − | </syntaxhighlight><syntaxhighlight lang="powershell"> | + | </syntaxhighlight>或<syntaxhighlight lang="powershell"> | 
| E:\record\2022\9\7>pip config list | E:\record\2022\9\7>pip config list | ||
2024年11月13日 (三) 09:17的最新版本
Windows 下编辑文件:pip.ini
[global] 
timeout = 6000 
index-url=http://mirrors.aliyun.com/pypi/simple/ 
[install] 
trusted-host=mirrors.aliyun.com
或
E:\record\2022\9\7>pip config list
E:\record\2022\9\7>pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
Writing to C:\Users\Administrator\AppData\Roaming\pip\pip.ini
E:\record\2022\9\7>pip config list
global.index-url='https://mirrors.aliyun.com/pypi/simple/'