ubuntu pip 换源
时间: 2023-10-18 13:28:01 浏览: 100
要更改Ubuntu中pip的源,你可以按照以下步骤进行操作:
1. 首先,打开终端。你可以使用快捷键Ctrl+Alt+T来打开终端。
2. 执行以下命令来编辑pip的配置文件:
```
sudo nano /etc/pip.conf
```
如果提示你输入密码,请输入你的管理员密码并按Enter键。
3. 在打开的编辑器中,将以下内容粘贴到文件中:
```
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [[Ubuntu18.04][Python][pip][国内源]Ubuntu系统的pip安装与配置国内源](https://download.csdn.net/download/weixin_38600696/14037193)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ubuntu 更换系统软件源 和 pip源](https://blog.csdn.net/weixin_39715012/article/details/120635192)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文