Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
"ADVERTENCIA: el valor de Scheme.Data no coincide" cuando intento actualizar pip o instalar paquetes

Tengo una Mac M1 y acabo de darme cuenta de que cuando trato de actualizar pip o instalar algún paquete recibo una serie de advertencias:

 user@mac01 ~ $python3 -m pip install --upgrade pip WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/lib/python3.9/site-packages sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/lib/python3.9/site-packages sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/include/python3.9/UNKNOWN sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/bin sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 WARNING: Additional context: user = False home = None root = None prefix = None Requirement already satisfied: pip in /opt/homebrew/lib/python3.9/site-packages (21.1) WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/lib/python3.9/site-packages sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/lib/python3.9/site-packages sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/include/python3.9/UNKNOWN sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew/bin sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /opt/homebrew sysconfig: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 WARNING: Additional context: user = False home = None root = None prefix = None user@mac01 ~ $

Por favor avise.

over 4 years ago · Hanz Gallego
6 answers
Answer question

0

¿Has probado a ejecutarlo desde un entorno virtual?

 python3 -m venv venv source ./venv/bin/activate pip install --upgrade pip
over 4 years ago · Hanz Gallego Report

0

Curiosamente, pip incluso se queja de sí mismo:

 C:\python>python -m pip install --upgrade --force-reinstall pip Collecting pip Using cached pip-21.1-py3-none-any.whl (1.5 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.1 Uninstalling pip-21.1: Successfully uninstalled pip-21.1 WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: C:\python\Include\UNKNOWN sysconfig: C:\python\Include WARNING: Additional context: user = False home = None root = None prefix = None Successfully installed pip-21.1

Puede suprimir las advertencias pedantes utilizando pip install foo 2>nul en Windows o pip install foo 2>/dev/null en Linux. Sin embargo, tenga cuidado: esto también suprimirá errores importantes

over 4 years ago · Hanz Gallego Report

0

SI, por casualidad, realizó algún cambio en su anaconda (reinstalar, actualizar, eliminar), entonces el problema puede ser de qué python está tratando de usar su pip.

Si observa el pip (/usr/local/bin/pip3), el shebang puede estar apuntando a una ruta de archivo de python diferente.

Tuve el mismo problema y lo resolví cambiando la referencia de python en el archivo pip3.

over 4 years ago · Hanz Gallego Report

0

degradar a una versión anterior de pip me lo arregló:

python -m pip install pip==21.0.1

over 4 years ago · Hanz Gallego Report

0

(¡Un mantenedor de pip aquí!)

Esta advertencia no es dañina per se y no afecta ninguna lógica de instalación. Puede usar con seguridad el pip actual, ignorando esta advertencia por ahora.

Para aquellos que desean una respuesta rápida para silenciar esta advertencia: python -m pip install pip=={some-older-version} -- por ahora, puede anclar a una versión anterior de pip. En mi opinión, es innecesario, pero puede elegir su veneno (algunas advertencias para ignorar frente a la versión anterior de pip).


Para aquellos que quieran saber más: esta advertencia se agregó porque queríamos sacar a la luz problemas que podrían ocurrir cuando hagamos una transición en el futuro.

Por razones históricas (uhm... Python 2), pip ha usado distutils.sysconfig para obtener información sobre dónde instalar sus paquetes de Python. Ese módulo se puede reemplazar funcionalmente por sysconfig que se agregó a la biblioteca estándar de Python en Python 3.2. Sin embargo, los distribuidores de Python lo parchean (y no sysconfig ) para proporcionar un "esquema de instalación predeterminado" alternativo.

PEP 632 desaprueba distutils y se eliminará de la biblioteca estándar de Python. Las instalaciones basadas en distutils son algo que la comunidad de empaquetado de Python ha estado tratando de desaprobar y eliminar por un tiempo.

Hemos estado trabajando con muchos distribuidores para que corrijan sus parches, de modo que las instalaciones en el futuro puedan pasar a usar sysconfig como su fuente de verdad. Este mensaje es parte de nuestra "obtención de información de usuarios de instalaciones de Python rotas". Como probablemente haya notado, las instalaciones de Python con distutils.sysconfig y sysconfig configurados de manera diferente son mucho más comunes de lo que esperábamos. :)

Actualización: las versiones más recientes de pip (> 21.1.1) deberían presentar estos mensajes con mucha menos frecuencia. Si sigues viendo estos mensajes, mira el problema que contiene el mensaje.

over 4 years ago · Hanz Gallego Report

0

Para aquellos que no pudieron ejecutar python -m pip install pip==21.0.1 (por ejemplo, devolvieron el mismo mensaje de error como ValueError: check_hostname requires server_hostname ), puede intentar deshabilitar el proxy del sistema y volver a intentar el comando (si estaba usando algún proxy como shadowsocks, v2ray, etc).

over 4 years ago · Hanz Gallego Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!