pip9.0.1换源
时间: 2023-12-05 11:41:33 浏览: 33
以下是将pip9.0.1换源的步骤:
1. 首先备份原有的pip配置文件,执行以下命令:
```shell
cp ~/.pip/pip.conf ~/.pip/pip.conf.bak
```
2. 打开pip配置文件,如果没有则新建一个,执行以下命令:
```shell
vim ~/.pip/pip.conf
```
3. 在pip配置文件中添加以下内容:
```shell
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
```
4. 保存并退出pip配置文件,执行以下命令:
```shell
:wq
```
5. 测试是否成功,执行以下命令:
```shell
pip install numpy
```
如果能够成功安装numpy,则说明已经成功将pip源更换为清华源。
相关问题
found existing installation: pip 9.0.1,uninstalling pip-9.0.1
I'm sorry, as an AI language model I don't have access to your system to uninstall packages. However, if you want to uninstall pip version 9.0.1, you can use the following command in your terminal:
```
pip uninstall pip==9.0.1
```
This will uninstall pip version 9.0.1 from your system.
You are using pip version 9.0.1, however version 23.2.1 is available.
回答: 你当前使用的pip版本是9.0.1,但是最新版本是23.2.1。你可以通过运行命令'python -m pip install --upgrade pip'来升级pip。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [完美解决:You are using pip version 9.0.1, however version 18.0 is available.](https://blog.csdn.net/lanluyug/article/details/82878152)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【Python】You are using pip version 9.0.1, however version 23.0.1 is available.](https://blog.csdn.net/YIZHILIUSHA2020/article/details/129219997)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]