logo头像

技术引领生活!

linux环境pip3镜像配置

本文于1705天之前发表,文中内容可能已经过时。

手残升级Ubuntu到了19.04,突然发现自己写的必应词典失效了,但是下载速度超级慢,于是就有了下文

图示

必须来张图

清华网站参考

临时使用

1
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

设置为默认

  • 使用命令
    1
    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  • 或者直接写文件
    1
    2
    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple

重要点

上述的方法只能是给pip用,要想pip3也是一样执行命令

1
cp .config/pip/pip.conf .config/pip3/

常用python包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
bencode                         
bs4
PyPDF2
PyQt5
ckeditor
ckeditor_uploader
django
request
termcolor
virtualenv
lxml
markdown
xlrd
pdfkit
xlwt
playsound
you_get

PS

必应词典github链接
必应词典

记录下加快效率

支付宝打赏 微信打赏

您的支持是我前行的动力!