“Pip源的查看和配置”的版本间的差异
		
		
		
		
		
		跳到导航
		跳到搜索
		
				
		
		
	
| Jihongchang(讨论 | 贡献)  (建立内容为“<syntaxhighlight lang="powershell"> 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/…”的新页面) | Jihongchang(讨论 | 贡献)  | ||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
| − | <syntaxhighlight lang="powershell"> | + | Windows 下编辑文件:pip.ini<syntaxhighlight lang="text"> | 
| + | [global]  | ||
| + | timeout = 6000  | ||
| + | index-url=http://mirrors.aliyun.com/pypi/simple/  | ||
| + | [install]  | ||
| + | trusted-host=mirrors.aliyun.com | ||
| + | </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/'