Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Value for [key] does not match” warnings in pip 21.2 #10151

Closed
uranusjr opened this issue Jul 10, 2021 · 467 comments
Closed

“Value for [key] does not match” warnings in pip 21.2 #10151

uranusjr opened this issue Jul 10, 2021 · 467 comments

Comments

@uranusjr
Copy link
Member

uranusjr commented Jul 10, 2021

This is spun off #9617 to aggregate user feedback for another round of pip’s location backend switch from distutils to sysconfig. If you find yourself seeing something like:

WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151

What you need to do?

  1. Check your version of pip. New reports that don't mention the pip version, or against versions before 21.2.4 will be ignored.
  2. Comment below with content like this so we can learn about your environment:
Output of 'pip debug':

```
pip version: pip X.Y.Z from /....
sys.version: ...
sys.executable: /path/to/python
...
```

Error output:

```
WARNING: Value for [location-key] does not match. Please report this to ...
distutils: /xxxxx
sysconfig: /yyyyy
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
```

Please:

  • Upgrade to pip 21.2.4 or higher and fill the template above.
  • Do not post screenshots.
  • Always wrap the error output in code block (a pair of three backticks ```) like the above format.
  • Once you posted your comment, you can unsubscribe to this issue (but you’re welcomed to stay if you’re inclined to). We will @ you once a fix is available for your specific environment so you can test the fix.

Additional information for those interested:

  • This is not an error, you can safely ignore the message. The warning is a means to allow pip developers gather information about environments that may have issues when we switch the location backend.
  • Python is going to deprecate distutils in the 3.10 release, with the intention to remove it in 3.12. Therefore, pip is trying to rewrite logic that uses distutils with alternative means provided by the Python standard library. However, distutils contains a lot of legacy edge cases that is difficult to cover, so we are trying to gather information on those edge cases we do not know yet. Once we know about them, we will fix them, so when 3.12 lands everyone can switch to the new location backend without anything breaking.
  • If the warning message causes your workflow to fail (due to an organisational no-warning restriction, for example), you can set the _PIP_LOCATIONS_NO_WARN_ON_MISMATCH=1 environment variable to suppress this warning. The message will only be visible with pip -vv (and to stdout instead of stderr) with this flag set.
@uranusjr uranusjr pinned this issue Jul 10, 2021
@uranusjr uranusjr changed the title Catch-all issue for “Value for [key] does not match” warnings in pip 21.2 “Value for [key] does not match” warnings in pip 21.2 Jul 10, 2021
@JRWoodwardMSW

This comment has been minimized.

@aminvakil

This comment has been minimized.

@uranusjr

This comment has been minimized.

@aminvakil

This comment has been minimized.

@uranusjr

This comment has been minimized.

@rupanshu1710

This comment has been minimized.

@ayusha98

This comment has been minimized.

@uranusjr

This comment has been minimized.

@rupanshu1710
Copy link

rupanshu1710 commented Jul 25, 2021

While installing requirements.txt for a Django project I am getting this warning.

C:\Users\Dell\FR_updateAI\core>pip install -r  requirements.txt
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: c:\msys64\mingw64\lib\python3.8\site-packages
sysconfig: c:\msys64\mingw64\lib\python3.8
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: c:\msys64\mingw64\lib\python3.8\site-packages
sysconfig: c:\msys64\mingw64\lib\python3.8
WARNING: Additional context:
user = False
home = None
root = None
prefix = None

@ayusha98

This comment has been minimized.

@aminvakil

This comment has been minimized.

@yermulnik

This comment has been minimized.

@rickhg12hs

This comment has been minimized.

@janesmae

This comment has been minimized.

@arderyp

This comment has been minimized.

@Vistaus

This comment has been minimized.

@thehiddenone

This comment has been minimized.

@SebNik1

This comment has been minimized.

@q2r5

This comment has been minimized.

@joelfrederico

This comment has been minimized.

@solarchemist

This comment has been minimized.

@luckman212

This comment has been minimized.

@allenatdecisiv
Copy link

Python 3.8.11 on Cygwin (CYGWIN_NT-10.0 FOUREYES 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin) on Windows 10 64-bit:

$ pip-review --verbose --interactive
boto3==1.18.6 is available (you have 1.18.5)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit y
botocore==1.21.6 is available (you have 1.21.5)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (y) y
cryptography==3.4.7 is available (you have 3.3.2)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (y) n
idna==3.2 is available (you have 2.10)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (n) n
userpath==1.7.0 is available (you have 1.6.0)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (n) y
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/lib/python3.8/site-packages
sysconfig: /usr/lib/python3.8/site-packages
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/lib/python3.8/site-packages
sysconfig: /usr/lib/python3.8/site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/UNKNOWN
sysconfig: /usr/include/python3.8/UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/bin
sysconfig: /usr/bin
WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local
sysconfig: /usr
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Collecting boto3==1.18.6
  Downloading boto3-1.18.6-py3-none-any.whl (131 kB)
     |████████████████████████████████| 131 kB 7.3 MB/s
Collecting botocore==1.21.6
  Downloading botocore-1.21.6-py3-none-any.whl (7.7 MB)
     |████████████████████████████████| 7.7 MB 20.4 MB/s
Collecting userpath==1.7.0
  Downloading userpath-1.7.0-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.8/site-packages (from boto3==1.18.6) (0.10.0)
Requirement already satisfied: s3transfer<0.6.0,>=0.5.0 in /usr/local/lib/python3.8/site-packages (from boto3==1.18.6) (0.5.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python3.8/site-packages (from botocore==1.21.6) (2.8.2)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/local/lib/python3.8/site-packages (from botocore==1.21.6) (1.26.6)
Requirement already satisfied: click in /usr/local/lib/python3.8/site-packages (from userpath==1.7.0) (8.0.1)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.8/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.21.6) (1.16.0)
Installing collected packages: botocore, userpath, boto3
  Attempting uninstall: botocore
    Found existing installation: botocore 1.21.5
    Uninstalling botocore-1.21.5:
      Successfully uninstalled botocore-1.21.5
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.8/botocore
  sysconfig: /usr/include/python3.8/botocore
  Attempting uninstall: userpath
    Found existing installation: userpath 1.6.0
    Uninstalling userpath-1.6.0:
      Successfully uninstalled userpath-1.6.0
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.8/userpath
  sysconfig: /usr/include/python3.8/userpath
  Attempting uninstall: boto3
    Found existing installation: boto3 1.18.5
    Uninstalling boto3-1.18.5:
      Successfully uninstalled boto3-1.18.5
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.8/boto3
  sysconfig: /usr/include/python3.8/boto3
Successfully installed boto3-1.18.6 botocore-1.21.6 userpath-1.7.0
$ pip debug
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.2.1 from /usr/lib/python3.8/site-packages/pip (python 3.8)
sys.version: 3.8.11 (default, Jul 23 2021, 01:56:47)
[GCC 10.2.0]
sys.executable: /usr/bin/python3.8.exe
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: cygwin
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /etc/pki/tls/certs/ca-bundle.crt
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 30
  cp38-cp38-cygwin_3_2_0_x86_64
  cp38-abi3-cygwin_3_2_0_x86_64
  cp38-none-cygwin_3_2_0_x86_64
  cp37-abi3-cygwin_3_2_0_x86_64
  cp36-abi3-cygwin_3_2_0_x86_64
  cp35-abi3-cygwin_3_2_0_x86_64
  cp34-abi3-cygwin_3_2_0_x86_64
  cp33-abi3-cygwin_3_2_0_x86_64
  cp32-abi3-cygwin_3_2_0_x86_64
  py38-none-cygwin_3_2_0_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

@allenatdecisiv

This comment has been minimized.

@mstankus

This comment has been minimized.

@uranusjr

This comment has been minimized.

@joshua-in-boots
Copy link

pip 21.2.3 from /usr/lib/python3.9/site-packages/pip (python 3.9)

Rocky Linux on WSL2, which is acturally a container image from docker hub.

  • OS: Rocky Linux 9 on WSL2, an imported from docker hub.
  • Python 3.9.10 installed by BaseOS repository, with python3-pip-21.2.3-6.el9.noarch, python3-setuptools-53.0.0-10.el9.noarch, libxcrypt-compat-4.4.18-3.el9.x86_64

pip debug output:

pip version: pip 21.2.3 from /usr/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.10 (main, Feb  9 2022, 00:00:00)
[GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /etc/pki/tls/certs/ca-bundle.crt
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 726
  cp39-cp39-manylinux_2_34_x86_64
  cp39-cp39-manylinux_2_33_x86_64
  cp39-cp39-manylinux_2_32_x86_64
  cp39-cp39-manylinux_2_31_x86_64
  cp39-cp39-manylinux_2_30_x86_64
  cp39-cp39-manylinux_2_29_x86_64
  cp39-cp39-manylinux_2_28_x86_64
  cp39-cp39-manylinux_2_27_x86_64
  cp39-cp39-manylinux_2_26_x86_64
  cp39-cp39-manylinux_2_25_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

pip install ipython output:

Defaulting to user installation because normal site-packages is not writeable
Collecting ipython
  Downloading ipython-8.4.0-py3-none-any.whl (750 kB)
     |████████████████████████████████| 750 kB 9.1 MB/s
Collecting decorator
  Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting matplotlib-inline
  Downloading matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
Collecting pygments>=2.4.0
  Downloading Pygments-2.12.0-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 36.9 MB/s
Collecting traitlets>=5
  Downloading traitlets-5.3.0-py3-none-any.whl (106 kB)
     |████████████████████████████████| 106 kB 125.6 MB/s
Collecting pickleshare
  Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading prompt_toolkit-3.0.30-py3-none-any.whl (381 kB)
     |████████████████████████████████| 381 kB 46.6 MB/s
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3.9/site-packages (from ipython) (53.0.0)
Collecting pexpect>4.3
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 15.0 MB/s
Collecting backcall
  Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting stack-data
  Downloading stack_data-0.3.0-py3-none-any.whl (23 kB)
Collecting jedi>=0.16
  Downloading jedi-0.18.1-py2.py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 40.0 MB/s
Collecting parso<0.9.0,>=0.8.0
  Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)
     |████████████████████████████████| 100 kB 25.0 MB/s
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting executing
  Downloading executing-0.8.3-py2.py3-none-any.whl (16 kB)
Collecting asttokens
  Downloading asttokens-2.0.5-py2.py3-none-any.whl (20 kB)
Collecting pure-eval
  Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB)
Requirement already satisfied: six in /usr/lib/python3.9/site-packages (from asttokens->stack-data->ipython) (1.15.0)
Installing collected packages: wcwidth, traitlets, pure-eval, ptyprocess, parso, executing, asttokens, stack-data, pygments, prompt-toolkit, pickleshare, pexpect, matplotlib-inline, jedi, decorator, backcall, ipython
  WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/joshua/.local/lib/python3.9/site-packages
  sysconfig: /home/joshua/.local/lib64/python3.9/site-packages
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None
Successfully installed asttokens-2.0.5 backcall-0.2.0 decorator-5.1.1 executing-0.8.3 ipython-8.4.0 jedi-0.18.1 matplotlib-inline-0.1.3 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.30 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.12.0 stack-data-0.3.0 traitlets-5.3.0 wcwidth-0.2.5

@evanhowington
Copy link

evanhowington commented Jul 29, 2022

I am working in Pycharm Professional on linux distro Pop!_OS

I am having issues using the "Install requirements from Pipfile.lock" feature in the IDE. It is saying certain package requirements are not satisfied. I then attempted to install the exact packages and version numbers using pip install via the builtin terminal in pycharm pro and it said "bash: pip: command not found". Then I wanted to make sure pip was installed so I followed the steps located here: pip documentation 22.2.1 - Installation as you can see in the first line of the code.

Finally, I am here reporting because the code asked me to. hip hip hooray!

neubtrino@pop-os:~/PycharmProjects/youtube$ python3 -m ensurepip --upgrade
Defaulting to user installation because normal site-packages is not writeable
Looking in links: /tmp/tmp6swwu0zx
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (59.8.0)
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (22.1.1)
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /var/data/python/lib/python3.9/site-packages
sysconfig: /home/neubtrino/.local/lib/python3.9/site-packages
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /var/data/python/lib/python3.9/site-packages
sysconfig: /home/neubtrino/.local/lib/python3.9/site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /var/data/python/include/python3.9/UNKNOWN
sysconfig: /home/neubtrino/.local/include/python3.9/UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /var/data/python/bin
sysconfig: /home/neubtrino/.local/bin
WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /var/data/python
sysconfig: /home/neubtrino/.local
WARNING: Additional context:
user = True
home = None
root = None
prefix = None
neubtrino@pop-os:~/PycharmProjects/youtube$ 

Additional system specs if it matters

neubtrino@pop-os:~$ neofetch
             /////////////                neubtrino@pop-os 
         /////////////////////            ---------------- 
      ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64 
    //////7676767676*//////////////       Kernel: 5.18.10-76051810-generic 
   /////76767//7676767//////////////      Uptime: 56 mins 
  /////767676///*76767///////////////     Packages: 1948 (dpkg), 19 (flatpak) 
 ///////767676///76767.///7676*///////    Shell: bash 5.1.16 
/////////767676//76767///767676////////   Resolution: 3840x2160, 3840x2160, 3840x2160 
//////////76767676767////76767/////////   DE: GNOME 
///////////76767676//////7676//////////   WM: Mutter 
////////////,7676,///////767///////////   WM Theme: Pop 
/////////////*7676///////76////////////   Theme: Pop-dark [GTK2/3] 
///////////////7676////////////////////   Icons: Pop [GTK2/3] 
 ///////////////7676///767////////////    Terminal: gnome-terminal 
  //////////////////////'////////////     CPU: AMD Ryzen 9 3950X (32) @ 4.100GHz 
   //////.7676767676767676767,//////      GPU: NVIDIA GeForce RTX 3090 
    /////767676767676767676767/////       Memory: 7359MiB / 128730MiB 
      ///////////////////////////
         /////////////////////                                    
             /////////////                                        


neubtrino@pop-os:~$ 

@Dan-Essin
Copy link

Installing collected packages: setuptools, pip
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/include/python3.10/setuptools
sysconfig: /root/Downloads/Python-3.10.0/Include/setuptools
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/include/python3.10/pip
sysconfig: /root/Downloads/Python-3.10.0/Include/pip
Successfully installed pip-21.2.3 setuptools-57.4.0
py3-10-errors.txt

@ssbarnea
Copy link
Contributor

MacOS 12.5.1 using system python3 fails to perform an user level install even if that was explicitly asked. Logs at https://gist.github.com/ssbarnea/a89a88481fe5bdaa90f46b4f8341ba8e

Out package is using PEP-517, and no longer has a setup.py file, but still we can see misleading errors like the first line from here:

Running setup.py develop for ansible-lint
    ERROR: Command errored out with exit status 1:
     command: /Library/Developer/CommandLineTools/usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/ssbarnea/c/a/ansible-lint/setup.py'"'"'; __file__='"'"'/Users/ssbarnea/c/a/ansible-lint/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /Users/ssbarnea/c/a/ansible-lint/
    Complete output (28 lines):
    running develop
    WARNING: The user site-packages directory is disabled.
    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

        [Errno 13] Permission denied: '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/test-easy-install-98817.write-test'

    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

        /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/

    Perhaps your account does not have write access to this directory?  If the
    installation directory is a system-owned directory, you may need to sign in
    as the administrator or "root" account.  If you do not have administrative
    access to this machine, you may wish to choose a different installation
    directory, preferably one that is listed in your PYTHONPATH environment
    variable.

    For information on other options, you may wish to consult the
    documentation at:

      https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html

    Please make the appropriate changes for your system and try again.

    ----------------------------------------

@adontz
Copy link

adontz commented Sep 21, 2022

AlmaLinux 9

WARNING: Value for scheme.platlib does not match. Please report this to #10151
distutils: /root/.local/lib/python3.9/site-packages
sysconfig: /root/.local/lib64/python3.9/site-packages
WARNING: Additional context:
user = True
home = None
root = None
prefix = None

@leannextang
Copy link

Running at Linux release-ali-billing-data 5.10.0-18-cloud-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux.
Got the error at the end of the install,
pip debug:

WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)
sys.version: 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /etc/ssl/certs/ca-certificates.crt
pip._vendor.DEBUNDLED: True
pip._vendor.WHEEL_DIR: /usr/share/python-wheels
debundled wheel versions:
  CacheControl==0.12.6
  appdirs==1.4.4
  certifi==2020.6.20
  chardet==4.0.0
  colorama==0.4.4
  contextlib2==0.6.0.post1
  distlib==0.3.1
  distro==1.5.0
  html5lib==1.1
  idna==2.10
  ipaddr==2.2.0
  msgpack==1.0.0
  packaging==20.9
  pep517==0.9.1
  pip==20.3.4
  pkg_resources==0.0.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.25.1
  resolvelib==0.5.4
  retrying==1.3.3
  setuptools==44.1.1
  six==1.16.0
  toml==0.10.1
  urllib3==1.26.5
  webencodings==0.5.1
  wheel==0.34.2
Compatible tags: 663
  cp39-cp39-manylinux_2_31_x86_64
  cp39-cp39-manylinux_2_30_x86_64
  cp39-cp39-manylinux_2_29_x86_64
  cp39-cp39-manylinux_2_28_x86_64
  cp39-cp39-manylinux_2_27_x86_64
  cp39-cp39-manylinux_2_26_x86_64
  cp39-cp39-manylinux_2_25_x86_64
  cp39-cp39-manylinux_2_24_x86_64
  cp39-cp39-manylinux_2_23_x86_64
  cp39-cp39-manylinux_2_22_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

Warning message

WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /home/RD/opt/python-3.10.2/include/python3.10/UNKNOWN
sysconfig: /home/RD/Python-3.10.2/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmpd350gfxj
Processing /tmp/tmpd350gfxj/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmpd350gfxj/pip-21.2.4-py3-none-any.whl
Installing collected packages: setuptools, pip
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/RD/opt/python-3.10.2/include/python3.10/setuptools
  sysconfig: /home/RD/Python-3.10.2/Include/setuptools
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/RD/opt/python-3.10.2/include/python3.10/pip
  sysconfig: /home/RD/Python-3.10.2/Include/pip
  WARNING: The scripts pip3 and pip3.10 are installed in '/home/RD/opt/python-3.10.2/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location
  Successfully installed pip-21.2.4 setuptools-58.1.0

@omacox
Copy link

omacox commented Oct 8, 2022

WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.10/UNKNOWN
sysconfig: /root/Python-3.10.2/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmpu93vdy5g
Processing /tmp/tmpu93vdy5g/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmpu93vdy5g/pip-21.2.4-py3-none-any.whl
Installing collected packages: setuptools, pip
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.10/setuptools
sysconfig: /root/Python-3.10.2/Include/setuptools
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.10/pip
sysconfig: /root/Python-3.10.2/Include/pip
Successfully installed pip-21.2.4 setuptools-58.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

result from running

at this point

Now build the Python 3.10 source using this command:
$ sudo make altinstall

https://brightwhiz.com/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems/

@hobson
Copy link

hobson commented Oct 11, 2022

$ pip debug

pip version: pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
sys.version: 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /etc/ssl/certs/ca-certificates.crt
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.10
  colorama==0.4.4
  distlib==0.3.4
  distro==1.6.0
  html5lib==1.1
  msgpack==1.0.3 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.3
  pep517==0.12.0
  platformdirs==2.4.1
  progress==1.6
  pyparsing==3.0.7
  requests==2.27.1
  certifi==2021.10.08
  chardet==4.0.0
  idna==3.3
  urllib3==1.26.8
  rich==11.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.11.2
  typing_extensions==4.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==0.8.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 818
  cp310-cp310-manylinux_2_35_x86_64
...
  cp310-cp310-manylinux_2_26_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

@HumanBot000
Copy link

WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.10/UNKNOWN
sysconfig: /Python-3.10.0/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmp6exrquo0
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/site-packages (57.4.0)
Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (21.2.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@Zephor5
Copy link

Zephor5 commented Oct 14, 2022

➜  ~ sudo -H pip3 install --upgrade pip
Password:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages (21.2.4)
Collecting pip
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1f/2c/d9626f045e7b49a6225c6b09257861f24da78f4e5f23af2ddbdf852c99b8/pip-22.2.2-py3-none-any.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 606 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    WARNING: Value for bin_prefix does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
    distutils: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin
    sysconfig: /usr/local/bin
    WARNING: Additional context:
    user = False
    home = None
    root = None
    prefix = None
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-22.2.2

@nexoft-xyz
Copy link

nexoft-xyz commented Oct 24, 2022

Python 3.9.10
RockyLinux9 (RHEL9)
Linux localhost.localdomain 5.14.0-70.26.1.el9_0.x86_64 #1 SMP PREEMPT Tue Sep 20 17:53:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

[user@localhost ~]$ python -m ensurepip --upgrade
Defaulting to user installation because normal site-packages is not writeable
Looking in links: /tmp/tmpjuchf4vg
Processing /tmp/tmpjuchf4vg/setuptools-53.0.0-py3-none-any.whl
Processing /tmp/tmpjuchf4vg/pip-21.2.3-py3-none-any.whl
Installing collected packages: setuptools, pip
  WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/user/.local/lib/python3.9/site-packages
  sysconfig: /home/user/.local/lib64/python3.9/site-packages
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None
Successfully installed pip-21.2.3 setuptools-53.0.0

pip debug was giving "pip" command not found

after : python get-pip.py

python get-pip.py 
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
  Downloading pip-22.3-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 2.8 MB/s eta 0:00:00
Collecting wheel
  Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.3
    Uninstalling pip-21.2.3:
      Successfully uninstalled pip-21.2.3

pip debug :

WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 22.3 from /home/user/.local/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.10 (main, Feb  9 2022, 00:00:00) 
[GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
sys.executable: /usr/bin/python
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /home/user/.local/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.11
  colorama==0.4.5
  distlib==0.3.6
  distro==1.7.0
  msgpack==1.0.4
  packaging==21.3
  pep517==0.13.0
  platformdirs==2.5.2
  pyparsing==3.0.9
  requests==2.28.1
  certifi==2022.09.24
  chardet==5.0.0
  idna==3.4
  urllib3==1.26.12
  rich==12.5.1 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.13.0
  typing_extensions==4.4.0 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==0.8.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.1.0 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==2.0.1
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 726
  cp39-cp39-manylinux_2_34_x86_64
  cp39-cp39-manylinux_2_33_x86_64
  cp39-cp39-manylinux_2_32_x86_64
  cp39-cp39-manylinux_2_31_x86_64
  cp39-cp39-manylinux_2_30_x86_64
  cp39-cp39-manylinux_2_29_x86_64
  cp39-cp39-manylinux_2_28_x86_64
  cp39-cp39-manylinux_2_27_x86_64
  cp39-cp39-manylinux_2_26_x86_64
  cp39-cp39-manylinux_2_25_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

@Gouvernathor
Copy link

WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /home/renpygouv/Documents/renpy-build/tmp/host/include/python3.9/UNKNOWN
sysconfig: /home/renpygouv/Documents/renpy-build/tmp/build/hostpython3.host/Python-3.9.10/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None

Not sure whether and which context information is useful.

@gkiffney
Copy link

Linux ip-172-24-86-71.ec2.internal 5.10.147-133.644.amzn2.aarch64 #1 SMP Fri Oct 14 01:16:25 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

[ec2-user@ip-172-24-86-71 Python-3.9.10]$ pip3.9 debug
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.10 (main, Oct 26 2022, 13:52:24) 
[GCC 7.3.1 20180712 (Red Hat 7.3.1-15)]
sys.executable: /usr/local/bin/python3.9
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/local/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 264
  cp39-cp39-manylinux_2_26_aarch64
  cp39-cp39-manylinux_2_25_aarch64
  cp39-cp39-manylinux_2_24_aarch64

WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.9/UNKNOWN
sysconfig: /home/ec2-user/Python-3.9.10/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmpv78y7gyq
Processing /tmp/tmpv78y7gyq/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmpv78y7gyq/pip-21.2.4-py3-none-any.whl
Installing collected packages: setuptools, pip
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.9/setuptools
  sysconfig: /home/ec2-user/Python-3.9.10/Include/setuptools
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151> ```

@sevens
Copy link

sevens commented Nov 16, 2022

Slackware issue moved to #10668

I think I have a follow-up on this (can't comment on #10668 as it's locked).

First, AFAICT the offending posix_user patch is now gone, from both 15.0 (most recent release) and -current (development release). (n.b.: so the change silencing the warning may be reverted?)

However currently any 'user' install will install into ~/.local/lib64 despite this, which is not in sys.path. The code is quite complicated but I can't find anything in the few Slackware patches that could result in this; it seems the compile-option (Python on Slackware is compiled with --with-platlibdir=lib64 on 64bit systems) triggers it.

I did some debugging and it seems this happens in /usr/lib64/python3.9/sysconfig.py(180)_expand_vars():

/usr/lib64/python3.9/sysconfig.py(180)_expand_vars()
-> res[key] = os.path.normpath(_subst_vars(value, vars))
(Pdb) _subst_vars(value, vars)
'/root/.local/lib64/python3.9'
(Pdb) key, value, vars['platlibdir']
('stdlib', '{userbase}/{platlibdir}/python{py_version_short}', 'lib64')

while earlier on in the code (/usr/lib64/python3.9/distutils/command/install.py, mainly in finalize_unix() and a bit after that) the relevant vars where still pointing to ~/.local/lib/.

N.b.: the issue also appears when doing a regular setup.py install --user though, so it's not in the code of Pip itself but still reporting it here (as it is in sysconfig, which this issue is also about).

pip debug:

pip version: pip 22.2.2 from /usr/lib64/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.15 (main, Nov 16 2022, 16:05:01)
[GCC 12.2.0]
sys.executable: /usr/bin/python3
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/lib64/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.11
  colorama==0.4.5
  distlib==0.3.5
  distro==1.7.0
  msgpack==1.0.4
  packaging==21.3
  pep517==0.12.0
  platformdirs==2.5.2
  pyparsing==3.0.9
  requests==2.28.1
  certifi==2022.06.15
  chardet==5.0.0
  idna==3.3
  urllib3==1.26.10
  rich==12.5.1 (Unable to locate actual module version, using vendor.txt specified version)
  pygments==2.12.0
  typing_extensions==4.3.0 (Unable to locate actual module version, using vendor.txt specified version)
  resolvelib==0.8.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==2.0.1
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 768
  cp39-cp39-manylinux_2_36_x86_64
  cp39-cp39-manylinux_2_35_x86_64
  cp39-cp39-manylinux_2_34_x86_64
  cp39-cp39-manylinux_2_33_x86_64
  cp39-cp39-manylinux_2_32_x86_64
  cp39-cp39-manylinux_2_31_x86_64
  cp39-cp39-manylinux_2_30_x86_64
  cp39-cp39-manylinux_2_29_x86_64
  cp39-cp39-manylinux_2_28_x86_64
  cp39-cp39-manylinux_2_27_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

@askiiart
Copy link

askiiart commented Dec 14, 2022

Got the error; Rocky Linux 9.1 (Installed from "DVD" iso - Server with GUI install)

Defaulting to user installation because normal site-packages is not writeable
Collecting docker
  Downloading docker-6.0.1-py3-none-any.whl (147 kB)
     |████████████████████████████████| 147 kB 354 kB/s 
Collecting websocket-client>=0.32.0
  Downloading websocket_client-1.4.2-py3-none-any.whl (55 kB)
     |████████████████████████████████| 55 kB 245 kB/s 
Collecting packaging>=14.0
  Downloading packaging-22.0-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 226 kB/s 
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3.9/site-packages (from docker) (1.26.5)
Collecting requests>=2.26.0
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 342 kB/s 
Collecting charset-normalizer<3,>=2
  Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
     |████████████████████████████████| 155 kB 369 kB/s 
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests>=2.26.0->docker) (2.10)
Installing collected packages: charset-normalizer, certifi, websocket-client, requests, packaging, docker
  WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/ben/.local/lib/python3.9/site-packages
  sysconfig: /home/ben/.local/lib64/python3.9/site-packages
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None
Successfully installed certifi-2022.12.7 charset-normalizer-2.1.1 docker-6.0.1 packaging-22.0 requests-2.28.1 websocket-client-1.4.2

@JensTimmerman
Copy link

JensTimmerman commented Dec 17, 2022

Output of 'pip debug':

WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
sys.version: 3.6.8 (default, Oct 26 2022, 09:13:21) 
[GCC 8.5.0 20210514 (Red Hat 8.5.0-17)]
sys.executable: /usr/bin/python3.6
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /usr/local/lib/python3.6/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.3
  distro==1.6.0
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.12.0
  platformdirs==2.4.0
  progress==1.6
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.7
  resolvelib==0.8.0
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 429
  cp36-cp36m-manylinux_2_28_x86_64
  cp36-cp36m-manylinux_2_27_x86_64
  cp36-cp36m-manylinux_2_26_x86_64
  cp36-cp36m-manylinux_2_25_x86_64
  cp36-cp36m-manylinux_2_24_x86_64
  cp36-cp36m-manylinux_2_23_x86_64
  cp36-cp36m-manylinux_2_22_x86_64
  cp36-cp36m-manylinux_2_21_x86_64
  cp36-cp36m-manylinux_2_20_x86_64
  cp36-cp36m-manylinux_2_19_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

...

Error output:

Unable to install package homekit[IP]==0.15.0: WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /opt/home-assistant/deps/lib/python3.6/site-packages
  sysconfig: /lib/python3.6/site-packages
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /opt/home-assistant/deps/include/python3.6m/ed25519
  sysconfig: /include/python3.6/ed25519
  WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /opt/home-assistant/deps/bin
  sysconfig: /bin
  WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /opt/home-assistant/deps
  sysconfig: .
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = ''

@lejzab
Copy link

lejzab commented Jan 4, 2023

system pip on oracle linux 9 docker.
python3-pip-21.2.3-6.el9.noarch

error
WARNING: Value for scheme.platlib does not match. Please report this to #10151
distutils: /home/pollers/.local/lib/python3.9/site-packages
sysconfig: /home/pollers/.local/lib64/python3.9/site-packages
WARNING: Additional context:
user = True
home = None
root = None
prefix = None

@Reinitialized
Copy link

Output of 'pip debug':

pip version: pip 21.2.3 from /home/develop/.local/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.14 (main, Nov  7 2022, 00:00:00) 
[GCC 11.3.1 20220421 (Red Hat 11.3.1-2)]
sys.executable: /usr/bin/python
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: linux
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /etc/pki/tls/certs/ca-bundle.crt
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 726
  cp39-cp39-manylinux_2_34_x86_64
  cp39-cp39-manylinux_2_33_x86_64
  cp39-cp39-manylinux_2_32_x86_64
  cp39-cp39-manylinux_2_31_x86_64
  cp39-cp39-manylinux_2_30_x86_64
  cp39-cp39-manylinux_2_29_x86_64
  cp39-cp39-manylinux_2_28_x86_64
  cp39-cp39-manylinux_2_27_x86_64
  cp39-cp39-manylinux_2_26_x86_64
  cp39-cp39-manylinux_2_25_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]
...

Error output:

  WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/develop/.local/lib/python3.9/site-packages
  sysconfig: /home/develop/.local/lib64/python3.9/site-packages
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None

@jasgaa
Copy link

jasgaa commented Jan 12, 2023

On Raspberry Pi B+

WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/UNKNOWN
sysconfig: /home/jj/Python-3.9.9/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmp011p2mr0
Processing /tmp/tmp011p2mr0/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmp011p2mr0/pip-21.2.4-py3-none-any.whl
Installing collected packages: setuptools, pip
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/setuptools
sysconfig: /home/jj/Python-3.9.9/Include/setuptools
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/pip
sysconfig: /home/jj/Python-3.9.9/Include/pip
Successfully installed pip-21.2.4 setuptools-58.1.0

@scottj97
Copy link

On an old CentOS system, compiling Python as a limited service user.

Output of 'pip debug':

WARNING: The directory '/var/opt/gitlab/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has
 been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.                 
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and
 options of this command may change without notice.                                                                                           
pip version: pip 21.2.4 from /var/opt/gitlab/aril-custom/python/3.10.2/lib/python3.10/site-packages/pip (python 3.10)                         
sys.version: 3.10.2 (main, Jan 25 2023, 07:00:28) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]                                                     
sys.executable: /var/opt/gitlab/aril-custom/python/3.10.2/bin/python3.10                                                                      
sys.getdefaultencoding: utf-8                                                                                                                 
sys.getfilesystemencoding: utf-8                                                                                                              
locale.getpreferredencoding: UTF-8                                                                                                            
sys.platform: linux                                                                                                                           
sys.implementation:                                                                                                                           
  name: cpython                                                                                                                               
'cert' config value: Not specified                                                                                                            
REQUESTS_CA_BUNDLE: None                                                                                                                      
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /var/opt/gitlab/aril-custom/python/3.10.2/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.2
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==21.0
  pep517==0.11.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.26.0
  certifi==2021.05.30
  chardet==4.0.0
  idna==3.2
  urllib3==1.26.6
  resolvelib==0.7.1
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.16.0
  tenacity==8.0.1 (Unable to locate actual module version, using vendor.txt specified version)
  tomli==1.0.3
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 404
  cp310-cp310-manylinux_2_17_x86_64
  cp310-cp310-manylinux2014_x86_64
  cp310-cp310-manylinux_2_16_x86_64
  cp310-cp310-manylinux_2_15_x86_64
  cp310-cp310-manylinux_2_14_x86_64
  cp310-cp310-manylinux_2_13_x86_64
  cp310-cp310-manylinux_2_12_x86_64
  cp310-cp310-manylinux2010_x86_64
  cp310-cp310-manylinux_2_11_x86_64
  cp310-cp310-manylinux_2_10_x86_64
  ...
  [First 10 tags shown. Pass --verbose to show all.]

Error output:

WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>                            
distutils: /var/opt/gitlab/aril-custom/python/3.10.2/include/python3.10/UNKNOWN                                                               
sysconfig: /var/opt/gitlab/aril-custom/source/Python-3.10.2/Include/UNKNOWN                                                                   
WARNING: Additional context:                                                                                                                  
user = False                                                                                                                                  
home = None                                                                                                                                   
root = '/'                                                                                                                                    
prefix = None                                                                                                                                 

@MichaelCain2
Copy link

Updating my Raspberry Pi 4

WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/UNKNOWN
sysconfig: /home/pi/Python-3.9.9/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmpc20ygpuj
Processing /tmp/tmpc20ygpuj/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmpc20ygpuj/pip-21.2.4-py3-none-any.whl
Installing collected packages: setuptools, pip
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/setuptools
sysconfig: /home/pi/Python-3.9.9/Include/setuptools
WARNING: Value for scheme.headers does not match. Please report this to #10151
distutils: /usr/local/include/python3.9/pip
sysconfig: /home/pi/Python-3.9.9/Include/pip
Successfully installed pip-21.2.4 setuptools-58.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@InCogNiTo124
Copy link

WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/lib/python3.8/dist-packages
sysconfig: /usr/lib/python3.8/site-packages
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/lib/python3.8/dist-packages
sysconfig: /usr/lib/python3.8/site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/UNKNOWN
sysconfig: /usr/include/python3.8/UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/bin
sysconfig: /usr/bin
WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local
sysconfig: /usr
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/pytz
sysconfig: /usr/include/python3.8/pytz
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/python-dateutil
sysconfig: /usr/include/python3.8/python-dateutil
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/numpy
sysconfig: /usr/include/python3.8/numpy
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/pip
sysconfig: /usr/include/python3.8/pip
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/pandas
sysconfig: /usr/include/python3.8/pandas
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@MichaelCain2
Copy link

MichaelCain2 commented Jan 31, 2023 via email

@lucasdellasantina
Copy link

lucasdellasantina commented Feb 14, 2023

rm /usr/local/lib/python3.10/lib-dynload/_sysconfigdata__linux_i386-linux-gnu.py
rm -r /usr/local/lib/python3.10/lib-dynload/__pycache__
Creating directory /usr/local/share/man/man1
/usr/bin/install -c -m 644 ./Misc/python.man \
        /usr/local/share/man/man1/python3.10.1
if test "xupgrade" != "xno"  ; then \
        case upgrade in \
                upgrade) ensurepip="--altinstall --upgrade" ;; \
                install|*) ensurepip="--altinstall" ;; \
        esac; \
         ./python -E -m ensurepip \
                $ensurepip --root=/ ; \
fi
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.10/UNKNOWN
sysconfig: /home/pi/Python-3.10.0/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = '/'
prefix = None
Looking in links: /tmp/tmpp5b5f9qj
Processing /tmp/tmpp5b5f9qj/setuptools-57.4.0-py3-none-any.whl
Processing /tmp/tmpp5b5f9qj/pip-21.2.3-py3-none-any.whl
Installing collected packages: setuptools, pip
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.10/setuptools
  sysconfig: /home/pi/Python-3.10.0/Include/setuptools
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /usr/local/include/python3.10/pip
  sysconfig: /home/pi/Python-3.10.0/Include/pip
Successfully installed pip-21.2.3 setuptools-57.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@pradyunsg
Copy link
Member

Closing this out given that the reports were getting now are all from reporters who haven't read the issue description.

Thanks everyone for providing the information that you have provided here!

@pypa pypa locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests