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-08-23 Tue 18:22
Power by Emacs 27.1 (Org mode 9.5.4)