Python 官方文档:入门教程 => 点击学习
Miniconda3及pip换源 一、更换miniconda3的源,以清华的源为例: 清华源地址:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ 安装完miniconda3之后,执行下
清华源地址:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
安装完miniconda3之后,执行下列命令即可
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels Https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
清华源地址:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
修改 ~/.config/pip/pip.conf (linux), %APPDATA%\pip\pip.ini (windows 10) 或 $HOME/Library/Application Support/pip/pip.conf (MacOS) (没有就创建一个), 修改 index-url至tuna,例如
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
pip 和 pip3 并存时,只需修改 ~/.pip/pip.conf;目录和文件如果不存在则手动创建
--结束END--
本文标题: Miniconda3及pip换源
本文链接: https://www.lsjlt.com/news/189835.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0