pip

Table of Contents

1. 安装

https://pip.pypa.io/en/stable/getting-started/

wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

使用:

python3 -m pip install sampleproject-1.0.tar.gz
python3 -m pip uninstall sampleproject

2. 配置

配置文件位置: $HOME/.config/pip/pip.conf

[global]
timeout = 60
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

单次安装可以在命令行指定: pip install tornado -i https://pypi.douban.com/simple

First created: 2017-12-04 11:34:03
Last updated: 2022-12-11 Sun 12:49
Power by Emacs 29.0.91 (Org mode 9.6.6)