Descrição
o comando pip é um gerenciador de pacotes Python, de calcula as dependências automaticamente.
1º passo
Instalar o pip.
Via arquivo fonte
$ https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ python get-pip.py
Instale o pacote através do PyPI, ou easy_install
$ easy_install pip
Instalar pacotes
$ pip install SomePackage
[...]
Successfully installed SomePackage
Exibir que pacotes de arquivos foram instalados:
$ pip show --files SomePackage
Name: SomePackage
Version: 1.0
Location: /my/env/lib/pythonx.x/site-packages
Files:
../somepackage/__init__.py
[...]
Listar os pacotes desatualizados:
$ pip list --outdated SomePackage
(Current: 1.0 Latest: 2.0)
Atualizar pacotes:
$ pip install --upgrade SomePackage
[...]
Found existing installation: SomePackage 1.0
Uninstalling SomePackage:
Successfully uninstalled SomePackage
Running setup.py install for SomePackage
Successfully installed SomePackage
Desinstalar pacotes:
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage
referencia
https://pypi.python.org/pypi/pip
Comentários