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