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
