『DL笔记』替换conda加速,设置阿里云pip源,加速pip命令更新速度!
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
替换conda加速,设置阿里云pip源,加速pip命令更新速度! |
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
# 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 查看显示
python -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
python -m pip config list
# global.index-url='https://mirrors.aliyun.com/pypi/simple'
一、Linux操作系统设置pip加速
- 或者使用下面的其他源
# 阿里源
https://mirrors.aliyun.com/pypi/simple/
# 豆瓣
https://pypi.douban.com/simple/
# 清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
- 当前用户目录下,新建
.pip
文件夹!
mkdir ~/.pip
- 进入该目录,新建一个文件
pip.conf
,这里我使用下面的命令,方式比较多,自己选择!
cat > ~/.pip/pip.conf << EOF
- 然后输入如下:
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/
EOF

- 到这里已经操作完成!
二、Windows操作系统设置pip加速
# 阿里源
https://mirrors.aliyun.com/pypi/simple/
# 豆瓣
https://pypi.douban.com/simple/
# 清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
-
使用
win+r
打开cmd窗口输入,输入:%APPDATA%
,回车。 -
然后在这里创建
pip
文件夹

- 最后创建
pip.ini
文件(可以先创建.txt
文件,最后改一下后缀!),写入如下内容:

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
- 到这里已经操作完成!
一行命令将Cmder添加到系统右键菜单中----配置环境
- 将下载的文件解压后如图,找到Cmder.exe右键以管理员身份运行
- 第三步,在窗口输入cmder /register all然后回车




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)