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