Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LuisPalacios/71d4ed76fdcb78a4be9c5c9aa400d85f to your computer and use it in GitHub Desktop.
Save LuisPalacios/71d4ed76fdcb78a4be9c5c9aa400d85f to your computer and use it in GitHub Desktop.
Instalar Python3 en OSX (3.9.2).
https://docs.python.org/3/using/mac.html
- OSX trae versiones antiguas de Python.
- Instalo la última versión de Python3 desde aquí:
- https://www.python.org/downloads/mac-osx/ (Me bajé la 3.9.2 para Intel)
- Ejecutar la instalación.
- Ejecutar “Install Certificates.command” desde /Applications/Python 3.9 (Desde FINDER)
- Abrir una SHELL (Terminal.app o iTerm) y ejecutar:
- /Applications/Python\ 3.9/Update\ Shell\ Profile.command
- Qué hace? .. .modifica la SHELL que uses para anticipar el Path nuevo de Python.
- NO borrar el Python original que trae OSX, se quedan en su sitio original pero NO se usarán porque el path a “python3, pip3” está apuntando “antes” a la versión nueva.
- A partir de ahora usar el siguiente PATH para el python nuevo:
- /usr/local/bin/python3
Instalar PIP !!!
Desde Terminal
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3 get-pip.py
- pip install virtualenv
En cada proyecto donde quieras trabajar en modo VirtualEnv hacer antes esto:
- mkdir ProyectoEjemplo
- cd ProyectoEjemplo
- virtualenv venv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment