. Advertisement .
..3..
. Advertisement .
..4..
When users try to run the code, they face this warning: ”WARNING: Value for scheme.platlib does not match. Please report this“. It is one popular problem shared by all developers. So, what exactly is this, and how can it be fixed? We’ll go over everything with you.
When Does The “WARNING: Value for scheme.platlib does not match. Please report this” Happen?
You are trying to install Packages. And you have recently noticed that whenever you try to upgrade pip or install any packages, you receive a series of warnings:
milanPatel ~ $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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/Frameworks/Python.framework/Versions/3.9
WARNING: Additional context:
The warning “WARNING: Value for scheme.platlib does not match. Please report this” is harmless on its own and has no bearing on how the installation works. You can safely continue using the current pip while temporarily ignoring this warning.
Some Basic Solutions For “WARNING: Value for scheme.platlib does not match. Please report this”
Method 1: Downgrade to a lower version
Pip is merely a standard Python package. PIP stands for “Preferred Installer Program” or “PIP Installs Packages” in the Python programming language. With just the word “pip,” this command-line program may install, reinstall, or remove PyPI packages. A Python package includes all the files necessary for a module, which is a library of Python code that you may use in your project. The majority of Python installations already have pip installed. This has the effect of keeping Python small while making millions of free packages readily usable. It serves as easy install’s successor.
As a result, pip can be installed using pip. If you don’t want to mess with the system’s pip, install it in a virtualenv. The first solution we suggest you to solve the error “WARNING: Value for scheme.platlib does not match. Please report this” is downgrading to a lower version. To downgrade the pip version, use this command. pip install pip==21.0.1 python -m pip install pip==21.0.1. To resolve this error, execute this command.
python -m pip install pip==21.0.1
Method 2: Follow the steps below to downgrade the pip version
Another solution to fix the error “WARNING: Value for scheme.platlib does not match. Please report this” is following the steps below to downgrade the pip version.
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: pip install pip==21.0.1 python -m pip install pip==21.0.1
After finishing these steps, your error will completely disappear and it will run well without any errors.
Method 3: See the first paragraph of the changelog
This message/error is intended, according to the pip v2.1 changelog. See the first paragraph of the changelog for more information.
~ pip install numpy
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /Users/me/.pyenv/versions/3.9.4/include/python3.9/UNKNOWN
sysconfig: /Users/me/.pyenv/versions/3.9.4/include/python3.9
Successfully installed numpy-1.20.2
The issue was resolved by rolling back one version, as suggested in Solution 1.
Method 4: Run python -m pip install pip==21.0.1
Run python -m pip install pip==21.0.1 — you can pin to an older version of the pip for the time being.
We don’t think that’s necessary because the warning isn’t harmful in and of itself and has no effect on the installation logic.
Conclusion
In short, the method depicted in the figure above has proven to be the most useful: “WARNING: Value for scheme.platlib does not match. Please report this“. In addition, we have a big group where everyone is always willing to help. Finally, we wish you a wonderful session full of inventive code solutions.
Read more
→ Tips On Solving The Error: “WARNING messages when I update PIP or install Packages”
Leave a comment