Skip to content
Home » WARNING: Value for scheme.platlib does not match

WARNING: Value for scheme.platlib does not match

To solve WARNING: Value for scheme.platlib does not match error follow below methods.

This warning is not harmful by itself, and it has no effect on the installation logic. You can safely use the current pip while disregarding this warning for the time being.

For those who want a quick fix to silence this warning, run python -m pip install pip==some-earlier-version – you can peg to an older version of pip for the time being. It’s superfluous in my opinion, but you can choose your poison (some warnings to ignore vs older pip version).

ERROR LOG

$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:

How to solve WARNING: Value for scheme.platlib does not match error?

Simply downgrading to an earlier version of pip addressed the problem for me. Simply downgrade to a lower version. To downgrade the pip version, use this command. python -m pip install pip==21.0.1

To Resolve This Error, Execute This Command

python -m pip install pip==21.0.1

If you were unable to run python -m pip install pip==21.0.1 because it produced an error message such as ValueError: check hostname requires server hostname, you can try disabling the system proxy and rerunning the command (If you were using some proxy like shadowsocks, v2ray, etc).

Solving WARNING: Value for scheme.platlib does not match error using pip

To resolve the issue, follow the steps below to downgrade the pip version. WARNING: Scheme value. platlib is not a match. Please notify the appropriate authorities about this warning notice.

  • Step 1: Launch a Terminal.
  • Step 2: Revert your PIP to a lower version of 21.0.1.
  • Step 3: In your Terminal, type the following command:
  • Step 4: python -m pip install pip==21.0.1
  • That’s all. Your Warning Message has now been removed.

Hope the above solution works.

Also read :

Warning: invalid value encountered in double_scalars in Numpy
DatabaseError: current transaction is aborted commands ignored until end of transaction block