pip

Table of Contents

1. MacOS 安装

sudo easy_install pip

2. 全局指定源

touch ~/.pip/pip.conf

# 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

3. 指定用户

pip install --user mysql-python

First created: 2017-12-04 11:34:03
Last updated: 2021-11-15 Mon 10:18
Power by Emacs 27.2 (Org mode 9.4.6)