refrence: pip
1. install
for unix:
$ sudo apt-get install python-pip
note: you could set mirror of deiban package ftp server to mirrors.163.com debian apt-get sourcelist (mirrors)
2. basic commands
- help command
$pip --help
- install package ($pip install [package-name])
$pip install threadpool
- uninstall package ($pip uninstall [package-name])
$pip uninstall threadpool
- search package ($pip search [package-name])
$pip search threadpool
3. configuration mirrors
refrence: http://pip.readthedocs.org/en/docs_rtd/configuration.html
[global] timeout = 60 trusted-host = pypi.douban.com index-url = http://pypi.douban.com/simple
时间: 2024-12-23 19:23:20