Skip to content

Instantly share code, notes, and snippets.

@map0logo
Last active August 29, 2015 14:04
Show Gist options
  • Save map0logo/83089ba7f8a465957a60 to your computer and use it in GitHub Desktop.
Save map0logo/83089ba7f8a465957a60 to your computer and use it in GitHub Desktop.
Cheat Sheets

Instalar archivos básicos de Python

Instalar paquetes básicos de compilación

$ sudo apt-get install build-essential

Instalar cabeceras de compilación de Python

$ sudo apt-get install python-dev python3-dev

Nota: python3-dev instala python3

Instalar git

$ sudo apt-get install git

Instalar Pip

http://pip.readthedocs.org/en/latest/installing.html

$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py

Nota: El pip del sistema instalarlo para el Python del sistema

Instalar virtualenvwrapper

$ sudo pip install virtulenvwrapper # instala virtualenv entre las dependencias

Configurar virtualenvwrapper

En .bashrc o .profile

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/projects
source /usr/local/bin/virtualenvwrapper.sh

Crear las carpetas

$ mkdir projects # donde va el código
$ mkdir .virtualenvs # donde va el entorno de desarrollo

Crear el proyecto

$ mkproject bootcamp

Crea el entorno $HOME/.virtualenvs/bootcamp y crea y se posiciona en la carpeta de desarrollo $HOME/projects/bootcamp

Instalar Numpy

$ pip install numpy

Tardará un buen rato compilando numpy.

Instalar iPython

$ pip install ipython

Instalar dependencias para el "notebook"

$ sudo apt-get install libzmq-dev
$ pip install pyzmq
$ pip install jinja2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment