Describing making Python 3 the default `python` under Homebrew
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- documentation
Línea de trabajo
Busca en las guías de instalación de OS X la sección sobre Homebrew y Python 3 que se muestra en el issue y, después, lee la página de Homebrew sobre Homebrew y Python para conocer el comportamiento actual. Actualiza las instrucciones de Python 3 y Python 2 para que reflejen el manejo de PATH y enlacen a la documentación de Homebrew; se considera terminado cuando la distinción entre versiones de macOS y el comportamiento predeterminado del comando python sean correctos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
So, about this section in the OS X installation guides:
That opt/python/libexec behavior is not actually about 10.12 Sierra vs. newer versions of macOS. Homebrew does not make the unqualified python command be Python 3 on any version of macOS. If this behavior was different in the past, that was due to a different Homebrew version, not a different macOS version. (Homebrew's policy is to not shadow system-provided components in a way that might break things.)
Maybe this section should be updated to something like:
Once you've installed Homebrew, insert the Homebrew directory at the top
of your :envvar:`PATH` environment variable if you are running 10.12 Sierra or older.
You can do this by adding the following line at the bottom of your :file:`~/.profile` file:
.. code-block:: console
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Now, we can install Python 3:
.. code-block:: console
$ brew install python
Then, to make your default `python` command point to Python 3:
.. code-block:: console
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
And the section in the Python 2 installation about doing PATH="/usr/local/opt/python@2/libexec/bin:$PATH" is no longer necessary: the Homebrew python@2 formula now provides a python command that is in /usr/local/bin by default.
Might also want to provide a link to Homebrew's Homebrew and Python page, which goes in to more detail.
- Lenguaje dominante
- Batchfile
- Estrellas
- 29.8k
- Forks
- 5.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de realpython/python-guide
-
Page 404 error Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
realpython/python-guide#1104 · 2 comentarios ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
realpython/python-guide#326 · 5 comentarios ·
-
@alex Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
realpython/python-guide#1194 ·
-
Development Team SAP Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
realpython/python-guide#1192 ·
Todos los issues de realpython/python-guide
Issues similares
-
Add: hunch Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
AbdelStark/awesome-typesafe#104 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
A11y ♿️
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Link Checker Report Abiertoautomated issue report
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
documentation improve or update documentation priority/low triage
Dificultad 2/5 Medio día Aptitud para principiantes 86/100
warpdotdev/docs#782 · 1 comentario ·