安装conda/pip/清华源
时间: 2023-11-14 07:07:45 浏览: 53
安装conda/pip/清华源的步骤如下:
1. 安装conda:可以从官网下载对应操作系统的安装包进行安装,也可以使用Miniconda进行安装。
2. 安装pip:在安装了Python之后,pip已经自带安装了。如果没有安装,可以使用以下命令进行安装:
```
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
```
3. 使用清华源:可以使用以下命令将pip源更换为清华源:
```
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```
相关问题
conda中pip换清华源
在conda中,可以通过更换pip源为清华源来提高软件安装的速度。首先,可以使用以下命令查看当前的pip源配置:
pip config list
然后,可以使用以下命令删除当前的pip源配置:[2]
pip config unset global.index-url
最后,可以使用以下命令添加清华源作为新的pip源配置:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.***从而加快下载速度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Ubuntu Server 20.04 系统安装(九):pip、conda源更换为清华/阿里源、查看源、删除源](https://blog.csdn.net/u013250861/article/details/126665161)[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%"]
- *3* [conda 清华源配置 pip清华源配置 anconda](https://download.csdn.net/download/weixin_38741966/14036171)[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 ]
linux 配置conda 和pip源
要配置conda和pip源,可以按照以下步骤进行:
1. 配置conda源:
- 打开终端,并输入以下命令:`conda config --set show_channel_urls yes`
- 然后,输入以下命令:`conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/`
- 这将将清华大学的镜像源添加到conda的配置文件中。
2. 配置pip源:
- 打开终端,并输入以下命令:`pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple`
- 这将把清华大学的镜像源设置为pip的默认源。
以上步骤完成后,conda和pip将使用清华大学的镜像源来下载软件包,加快下载速度。你也可以选择其他镜像源,根据自己的需求进行配置。希望能对你有所帮助!