ArchLinux 配置python

ArchLinux 配置python环境

1.python

yay -s python 默认已经安装,并且默认使用python3

2.pip

  • yay -s python2-pip

  • yay -s python3-pip

  • 配置 pip 源,默认~/.pip/pip.conf 或~/.config/pip/pip.conf 不会生效。需要在/etc/配置

    • sudo vim pip.conf 内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
extra-index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua
timeout = 120
posted @ 2020-04-19 17:48  雪梨加冰  阅读(2452)  评论(0编辑  收藏  举报