添加pip源,ubuntu

作者 : admin 本文共356个字,预计阅读时间需要1分钟 发布时间: 2024-06-9 共4人阅读

(base) pc@pc:~/Desktop$ mkdir ~/.pip
(base) pc@pc:~/Desktop$ touch ~/.pip/pip.conf
(base) pc@pc:~/Desktop$ nano ~/.pip/pip.conf

[global]
trusted-host = pypi.tuna.tsinghua.edu.cn;mirrors.aliyun.com;mirrors.cloud.tencent.com
index-url = http://pypi.tuna.tsinghua.edu.cn/simple/
extra-index-url =
 http://mirrors.aliyun.com/pypi/simple/
 http://mirrors.cloud.tencent.com/pypi/simple/

本站无任何商业行为
个人在线分享 » 添加pip源,ubuntu
E-->