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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM