pip install ./downloads/SomePackage-1.0.4.tar.gz 
pip install http://my.package.repo/SomePackage-1.0.4.zip
pip search "query"   ##查询package的具体名称
pip uninstall package-name  ##卸载
pip install SomePackage==1.0.4  ##指定版本的安装
pip install --upgrade SomePackage  ##package 版本升级mkdir ~/.pip 
vim ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com注意事项:
http://mirrors.aliyun.com/pypi/simple/中的simple目录必须有。--no-cache-dir重新下载安装包,而不是使用缓存包。trusted-host = mirrors.aliyun.com一定要加上这行,否则会报错。pip install mysql-python
Collecting mysql-python
  The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.
  Could not find a version that satisfies the requirement mysql-python (from versions: )
No matching distribution found for mysql-python编辑 vim .pip/pip.conf
[install]
trusted-host = mirrors.aliyun.com