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

Unable to find resource t64.exe in pip._vendor.distlib #11349

Closed
1 task done
Yuvaraja28 opened this issue Aug 4, 2022 · 23 comments
Closed
1 task done

Unable to find resource t64.exe in pip._vendor.distlib #11349

Yuvaraja28 opened this issue Aug 4, 2022 · 23 comments
Labels
type: bug A confirmed bug or unintended behavior

Comments

@Yuvaraja28
Copy link

Description

I'm using Python 3.10.5 and having PIP 22.2.1 and while updating PIP to latest Version 22.2.2 ValueError raises and its not updating PIP
image

Expected behavior

No response

pip version

22.2.1

Python version

3.10.5

OS

Windows 10

How to Reproduce

  1. Open Console and Run
  2. python -m pip install --upgrade pip

Output

No response

Code of Conduct

@Yuvaraja28 Yuvaraja28 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Aug 4, 2022
@asdwer-dev
Copy link

Same problem.

@sbidoul
Copy link
Member

sbidoul commented Aug 7, 2022

@vsajip could this be due to a change in distlib 0.3.5 ?

@vsajip
Copy link
Contributor

vsajip commented Aug 7, 2022

Perhaps, but it doesn't seem likely. The resource t64.exe is shipped as part of distlib and appears to be present in both the wheel and source tarball for 0.3.5.

@sbidoul
Copy link
Member

sbidoul commented Aug 7, 2022

@Yuvaraja28 could you check if the file t64.exe is present there:
image

@sbidoul
Copy link
Member

sbidoul commented Aug 7, 2022

The resource t64.exe is shipped as part of distlib and appears to be present in both the wheel and source tarball for 0.3.5.

I can confirm it is also present in the pip 22.2.x wheels.

@Yuvaraja28
Copy link
Author

The resource t64.exe is shipped as part of distlib and appears to be present in both the wheel and source tarball for 0.3.5.

I can confirm it is also present in the pip 22.2.x wheels.

t64.exe is there in that Directory

distlib

@Yuvaraja28
Copy link
Author

Just Download Latest Python from python.org thats the only Fix for this Issue
I've Downloaded and Installed Python 3.10.6 and now the Problem has Gone

@atugushev
Copy link
Contributor

atugushev commented Aug 20, 2022

pip-tools also has been experiencing this issue since 12 Aug 2022 on CI (github actions) with Windows against pip's main branch, see job logs.

The only difference is Python upgraded to 3.10.6 and CI started to fail, see successful and usuccessful jobs.

@vsajip
Copy link
Contributor

vsajip commented Aug 22, 2022

I think this needs someone to reproduce the issue reliably, perhaps with a modified scripts.py which catches the ValueError and invokes pdb, or prints out more diagnostic information which would help to diagnose the cause of the failure. Or else provide a minimal script which demonstrates the issue. On my local Python installation, I can't reproduce it, using a local venv in c:\temp\venv310 created with a freshly downloaded Python 3.1.0:

C:\Users\Vinay>AppData\Local\Programs\Python\Python310\python -m venv \temp\venv310

C:\Users\Vinay>\temp\venv310\Scripts\python
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z


C:\Users\Vinay>\temp\venv310\Scripts\python -m pip install -U pip
Requirement already satisfied: pip in c:\temp\venv310\lib\site-packages (22.2.1)
Collecting pip
  Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
     ---------------------------------------- 2.0/2.0 MB 6.2 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.2.1
    Uninstalling pip-22.2.1:
      Successfully uninstalled pip-22.2.1
Successfully installed pip-22.2.2

C:\Users\Vinay>\temp\venv310\Scripts\python
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pip._vendor.distlib.resources import finder
>>> f = finder('pip._vendor.distlib')
>>> r = f.find('t64.exe')
>>> len(r.bytes)
107520
>>>

That last bit uses the same logic as scripts.py does to find t64.exe. The file sizes match:

C:\Users\Vinay>dir \temp\venv310\Lib\site-packages\pip\_vendor\distlib\t64.exe
 Volume in drive C is Windows
 Volume Serial Number is F4E1-7AFC

 Directory of C:\temp\venv310\Lib\site-packages\pip\_vendor\distlib

22/08/2022  15:50           107,520 t64.exe
               1 File(s)        107,520 bytes
               0 Dir(s)  67,901,956,096 bytes free

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2022
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
@pradyunsg pradyunsg changed the title Error in PIP Upgrade Unable to find resource t64.exe in pip._vendor.distlib Apr 22, 2023
@pradyunsg pradyunsg reopened this Apr 22, 2023
@pradyunsg
Copy link
Member

And, we've reproduced this today with @aaravpandya at PyCon US! We started with a conda-provided Python, and ran:

This is on Windows 11 (22H2 25330.1000, prerelease 230323-1609) -- it's an Insider Preview release (I don't expect this to matter, but who knows! 🤷🏽).

@pradyunsg
Copy link
Member

(Aarav will post the reproducer details)

@pypa pypa unlocked this conversation Apr 22, 2023
@aaravpandya
Copy link

aaravpandya commented Apr 24, 2023

Thanks Pradyun. Here's how one can reproduce this issue. I followed the docs here - link. I had to change some commands to get it working for my setup as I had anaconda setup.
Modified commands -

python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
python -m pip install -e . 

The last command will give the following error -

(.venv) (base) C:\Users\%USER%\Dev\pip>python -m pip install -e .
Obtaining file:///C:/Users/%USER%/Dev/pip
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: pip
  Building editable for pip (pyproject.toml) ... done
  Created wheel for pip: filename=pip-23.2.dev0-0.editable-py3-none-any.whl size=9600 sha256=229d7520b87dcad5b5aba412b1bf6bfd727d0f193d6e5ef5f66c27cb1179a5b6
  Stored in directory: C:\Users\%USER%\AppData\Local\Temp\pip-ephem-wheel-cache-8yqpb8j6\wheels\58\47\99\6fb92630c092fbbf668383eeb63eba6d482db8233e5903b740
Successfully built pip
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.1.1
    Uninstalling pip-23.1.1:
      Successfully uninstalled pip-23.1.1
  Rolling back uninstall of pip
  Moving to c:\users\%USER%\dev\pip\.venv\lib\site-packages\pip-23.1.1.dist-info\
   from C:\Users\%USER%\Dev\pip\.venv\Lib\site-packages\~ip-23.1.1.dist-info
  Moving to c:\users\%USER%\dev\pip\.venv\lib\site-packages\pip\
   from C:\Users\%USER%\Dev\pip\.venv\Lib\site-packages\~ip
  Moving to c:\users\%USER%\dev\pip\.venv\scripts\pip.exe
   from C:\Users\%USER%\AppData\Local\Temp\pip-uninstall-52q2xvoa\pip.exe
  Moving to c:\users\%USER%\dev\pip\.venv\scripts\pip3.10.exe
   from C:\Users\%USER%\AppData\Local\Temp\pip-uninstall-52q2xvoa\pip3.10.exe
  Moving to c:\users\%USER%\dev\pip\.venv\scripts\pip3.9.exe
   from C:\Users\%USER%\AppData\Local\Temp\pip-uninstall-52q2xvoa\pip3.9.exe
  Moving to c:\users\%USER%\dev\pip\.venv\scripts\pip3.exe
   from C:\Users\%USER%\AppData\Local\Temp\pip-uninstall-52q2xvoa\pip3.exe
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\%USER%\anaconda3\lib\runpy.py:197 in _run_module_as_main                                 │
│                                                                                                  │
│   194 │   main_globals = sys.modules["__main__"].__dict__                                        │
│   195 │   if alter_argv:                                                                         │
│   196 │   │   sys.argv[0] = mod_spec.origin                                                      │
│ ❱ 197 │   return _run_code(code, main_globals, None,                                             │
│   198 │   │   │   │   │    "__main__", mod_spec)                                                 │
│   199                                                                                            │
│   200 def run_module(mod_name, init_globals=None,                                                │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │   alter_argv = True                                                                          │ │
│ │         code = <code object <module> at 0x0000020A71DDEDF0, file                             │ │
│ │                "C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\__main__.py", line 1>     │ │
│ │ main_globals = {                                                                             │ │
│ │                │   '__name__': '__main__',                                                   │ │
│ │                │   '__doc__': None,                                                          │ │
│ │                │   '__package__': 'pip',                                                     │ │
│ │                │   '__loader__': <_frozen_importlib_external.SourceFileLoader object at      │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                │   '__spec__': ModuleSpec(name='pip.__main__',                               │ │
│ │                loader=<_frozen_importlib_external.SourceFileLoader object at                 │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                origin='C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__… │ │
│ │                │   '__annotations__': {},                                                    │ │
│ │                │   '__builtins__': <module 'builtins' (built-in)>,                           │ │
│ │                │   '__file__':                                                               │ │
│ │                'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__.py',    │ │
│ │                │   '__cached__':                                                             │ │
│ │                'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__pycache__\\__… │ │
│ │                │   'os': <module 'os' from 'C:\\Users\\%USER%\\anaconda3\\lib\\os.py'>,       │ │
│ │                │   ... +3                                                                    │ │
│ │                }                                                                             │ │
│ │     mod_name = 'pip.__main__'                                                                │ │
│ │     mod_spec = ModuleSpec(name='pip.__main__',                                               │ │
│ │                loader=<_frozen_importlib_external.SourceFileLoader object at                 │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                origin='C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\anaconda3\lib\runpy.py:87 in _run_code                                            │
│                                                                                                  │
│    84 │   │   │   │   │      __loader__ = loader,                                                │
│    85 │   │   │   │   │      __package__ = pkg_name,                                             │
│    86 │   │   │   │   │      __spec__ = mod_spec)                                                │
│ ❱  87 │   exec(code, run_globals)                                                                │
│    88 │   return run_globals                                                                     │
│    89                                                                                            │
│    90 def _run_module_code(code, init_globals=None,                                              │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │       cached = 'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__pycache__\\__… │ │
│ │         code = <code object <module> at 0x0000020A71DDEDF0, file                             │ │
│ │                "C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\__main__.py", line 1>     │ │
│ │        fname = 'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__.py'     │ │
│ │ init_globals = None                                                                          │ │
│ │       loader = <_frozen_importlib_external.SourceFileLoader object at 0x0000020A718AB4C0>    │ │
│ │     mod_name = '__main__'                                                                    │ │
│ │     mod_spec = ModuleSpec(name='pip.__main__',                                               │ │
│ │                loader=<_frozen_importlib_external.SourceFileLoader object at                 │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                origin='C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__… │ │
│ │     pkg_name = 'pip'                                                                         │ │
│ │  run_globals = {                                                                             │ │
│ │                │   '__name__': '__main__',                                                   │ │
│ │                │   '__doc__': None,                                                          │ │
│ │                │   '__package__': 'pip',                                                     │ │
│ │                │   '__loader__': <_frozen_importlib_external.SourceFileLoader object at      │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                │   '__spec__': ModuleSpec(name='pip.__main__',                               │ │
│ │                loader=<_frozen_importlib_external.SourceFileLoader object at                 │ │
│ │                0x0000020A718AB4C0>,                                                          │ │
│ │                origin='C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__… │ │
│ │                │   '__annotations__': {},                                                    │ │
│ │                │   '__builtins__': <module 'builtins' (built-in)>,                           │ │
│ │                │   '__file__':                                                               │ │
│ │                'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__main__.py',    │ │
│ │                │   '__cached__':                                                             │ │
│ │                'C:\\Users\\%USER%\\Dev\\pip\\.venv\\lib\\site-packages\\pip\\__pycache__\\__… │ │
│ │                │   'os': <module 'os' from 'C:\\Users\\%USER%\\anaconda3\\lib\\os.py'>,       │ │
│ │                │   ... +3                                                                    │ │
│ │                }                                                                             │ │
│ │  script_name = None                                                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\__main__.py:31 in <module>                    │
│                                                                                                  │
│   28 │   )                                                                                       │
│   29 │   from pip._internal.cli.main import main as _main                                        │
│   30 │                                                                                           │
│ ❱ 31 │   sys.exit(_main())                                                                       │
│   32                                                                                             │
│                                                                                                  │
│ ╭────────────────────────────────────── locals ───────────────────────────────────────╮          │
│ │    _main = <function main at 0x0000020A72118DC0>                                    │          │
│ │       os = <module 'os' from 'C:\\Users\\%USER%\\anaconda3\\lib\\os.py'>             │          │
│ │      sys = <module 'sys' (built-in)>                                                │          │
│ │ warnings = <module 'warnings' from 'C:\\Users\\%USER%\\anaconda3\\lib\\warnings.py'> │          │
│ ╰─────────────────────────────────────────────────────────────────────────────────────╯          │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\cli\main.py:70 in main              │
│                                                                                                  │
│   67 │   │   logger.debug("Ignoring error %s when setting locale", e)                            │
│   68 │   command = create_command(cmd_name, isolated=("--isolated" in cmd_args))                 │
│   69 │                                                                                           │
│ ❱ 70 │   return command.main(cmd_args)                                                           │
│   71                                                                                             │
│                                                                                                  │
│ ╭──────────────────────────────────────── locals ─────────────────────────────────────────╮      │
│ │     args = ['install', '-e', '.']                                                       │      │
│ │ cmd_args = ['-e', '.']                                                                  │      │
│ │ cmd_name = 'install'                                                                    │      │
│ │  command = <pip._internal.commands.install.InstallCommand object at 0x0000020A7584F100> │      │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────╯      │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\cli\base_command.py:101 in main     │
│                                                                                                  │
│    98 │   def main(self, args: List[str]) -> int:                                                │
│    99 │   │   try:                                                                               │
│   100 │   │   │   with self.main_context():                                                      │
│ ❱ 101 │   │   │   │   return self._main(args)                                                    │
│   102 │   │   finally:                                                                           │
│   103 │   │   │   logging.shutdown()                                                             │
│   104                                                                                            │
│                                                                                                  │
│ ╭────────────────────────────────────── locals ───────────────────────────────────────╮          │
│ │ args = ['-e', '.']                                                                  │          │
│ │ self = <pip._internal.commands.install.InstallCommand object at 0x0000020A7584F100> │          │
│ ╰─────────────────────────────────────────────────────────────────────────────────────╯          │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\cli\base_command.py:223 in _main    │
│                                                                                                  │
│   220 │   │   │   else:                                                                          │
│   221 │   │   │   │   run = self.run                                                             │
│   222 │   │   │   │   rich_traceback.install(show_locals=True)                                   │
│ ❱ 223 │   │   │   return run(options, args)                                                      │
│   224 │   │   finally:                                                                           │
│   225 │   │   │   self.handle_pip_version_check(options)                                         │
│   226                                                                                            │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │  always_enabled_features = set()                                                             │ │
│ │                     args = []                                                                │ │
│ │ intercepts_unhandled_exc = <function Command._main.<locals>.intercepts_unhandled_exc at      │ │
│ │                            0x0000020A7186F040>                                               │ │
│ │             level_number = 20                                                                │ │
│ │                  options = <Values at 0x20a75af6d90: {'help': None, 'debug_mode': 1,         │ │
│ │                            'isolated_mode': False, 'require_venv': False, 'python': None,    │ │
│ │                            'verbose': 0, 'version': None, 'quiet': 0, 'log': None,           │ │
│ │                            'no_input': False, 'keyring_provider': 'auto', 'proxy': '',       │ │
│ │                            'retries': 5, 'timeout': 15, 'exists_action': [],                 │ │
│ │                            'trusted_hosts': [], 'cert': None, 'client_cert': None,           │ │
│ │                            'cache_dir': 'c:\\users\\%USER%\\appdata\\local\\pip\\cache',      │ │
│ │                            'disable_pip_version_check': False, 'no_color': False,            │ │
│ │                            'no_python_version_warning': False, 'features_enabled': [],       │ │
│ │                            'deprecated_features_enabled': [], 'requirements': [],            │ │
│ │                            'constraints': [], 'ignore_dependencies': False, 'pre': False,    │ │
│ │                            'editables': ['.'], 'dry_run': False, 'target_dir': None,         │ │
│ │                            'platforms': None, 'python_version': None, 'implementation':      │ │
│ │                            None, 'abis': None, 'use_user_site': False, 'root_path': None,    │ │
│ │                            'prefix_path': None, 'src_dir':                                   │ │
│ │                            'C:\\Users\\%USER%\\Dev\\pip\\.venv\\src', 'upgrade': None,        │ │
│ │                            'upgrade_strategy': 'only-if-needed', 'force_reinstall': None,    │ │
│ │                            'ignore_installed': None, 'ignore_requires_python': None,         │ │
│ │                            'build_isolation': True, 'use_pep517': None, 'check_build_deps':  │ │
│ │                            False, 'override_externally_managed': None, 'config_settings':    │ │
│ │                            None, 'global_options': None, 'compile': True,                    │ │
│ │                            'warn_script_location': True, 'warn_about_conflicts': True,       │ │
│ │                            'format_control': FormatControl(set(), set()), 'prefer_binary':   │ │
│ │                            False, 'require_hashes': False, 'progress_bar': 'on',             │ │
│ │                            'root_user_action': 'warn', 'index_url':                          │ │
│ │                            'https://pypi.org/simple', 'extra_index_urls': [], 'no_index':    │ │
│ │                            False, 'find_links': [], 'json_report_file': None, 'no_clean':    │ │
│ │                            False}>                                                           │ │
│ │                      run = <bound method with_cleanup.<locals>.wrapper of                    │ │
│ │                            <pip._internal.commands.install.InstallCommand object at          │ │
│ │                            0x0000020A7584F100>>                                              │ │
│ │                     self = <pip._internal.commands.install.InstallCommand object at          │ │
│ │                            0x0000020A7584F100>                                               │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\cli\req_command.py:248 in wrapper   │
│                                                                                                  │
│   245 │   │   │   configure_tempdir_registry(self.tempdir_registry)                              │
│   246 │   │                                                                                      │
│   247 │   │   try:                                                                               │
│ ❱ 248 │   │   │   return func(self, options, args)                                               │
│   249 │   │   except PreviousBuildDirError:                                                      │
│   250 │   │   │   # This kind of conflict can occur when the user passes an explicit             │
│   251 │   │   │   # build directory with a pre-existing folder. In that case we do               │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │                       args = []                                                              │ │
│ │ configure_tempdir_registry = <function with_cleanup.<locals>.configure_tempdir_registry at   │ │
│ │                              0x0000020A75AEE820>                                             │ │
│ │                       func = <function InstallCommand.run at 0x0000020A75AEE790>             │ │
│ │                    options = <Values at 0x20a75af6d90: {'help': None, 'debug_mode': 1,       │ │
│ │                              'isolated_mode': False, 'require_venv': False, 'python': None,  │ │
│ │                              'verbose': 0, 'version': None, 'quiet': 0, 'log': None,         │ │
│ │                              'no_input': False, 'keyring_provider': 'auto', 'proxy': '',     │ │
│ │                              'retries': 5, 'timeout': 15, 'exists_action': [],               │ │
│ │                              'trusted_hosts': [], 'cert': None, 'client_cert': None,         │ │
│ │                              'cache_dir': 'c:\\users\\%USER%\\appdata\\local\\pip\\cache',    │ │
│ │                              'disable_pip_version_check': False, 'no_color': False,          │ │
│ │                              'no_python_version_warning': False, 'features_enabled': [],     │ │
│ │                              'deprecated_features_enabled': [], 'requirements': [],          │ │
│ │                              'constraints': [], 'ignore_dependencies': False, 'pre': False,  │ │
│ │                              'editables': ['.'], 'dry_run': False, 'target_dir': None,       │ │
│ │                              'platforms': None, 'python_version': None, 'implementation':    │ │
│ │                              None, 'abis': None, 'use_user_site': False, 'root_path': None,  │ │
│ │                              'prefix_path': None, 'src_dir':                                 │ │
│ │                              'C:\\Users\\%USER%\\Dev\\pip\\.venv\\src', 'upgrade': None,      │ │
│ │                              'upgrade_strategy': 'only-if-needed', 'force_reinstall': None,  │ │
│ │                              'ignore_installed': None, 'ignore_requires_python': None,       │ │
│ │                              'build_isolation': True, 'use_pep517': None,                    │ │
│ │                              'check_build_deps': False, 'override_externally_managed': None, │ │
│ │                              'config_settings': None, 'global_options': None, 'compile':     │ │
│ │                              True, 'warn_script_location': True, 'warn_about_conflicts':     │ │
│ │                              True, 'format_control': FormatControl(set(), set()),            │ │
│ │                              'prefer_binary': False, 'require_hashes': False,                │ │
│ │                              'progress_bar': 'on', 'root_user_action': 'warn', 'index_url':  │ │
│ │                              'https://pypi.org/simple', 'extra_index_urls': [], 'no_index':  │ │
│ │                              False, 'find_links': [], 'json_report_file': None, 'no_clean':  │ │
│ │                              False}>                                                         │ │
│ │                       self = <pip._internal.commands.install.InstallCommand object at        │ │
│ │                              0x0000020A7584F100>                                             │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\commands\install.py:449 in run      │
│                                                                                                  │
│   446 │   │   │   if options.target_dir or options.prefix_path:                                  │
│   447 │   │   │   │   warn_script_location = False                                               │
│   448 │   │   │                                                                                  │
│ ❱ 449 │   │   │   installed = install_given_reqs(                                                │
│   450 │   │   │   │   to_install,                                                                │
│   451 │   │   │   │   global_options,                                                            │
│   452 │   │   │   │   root=options.root_path,                                                    │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │                                   _ = [                                                      │ │
│ │                                       │   <InstallRequirement object: pip==23.2.dev0 from    │ │
│ │                                       file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-w… │ │
│ │                                       editable=True>                                         │ │
│ │                                       ]                                                      │ │
│ │                                args = []                                                     │ │
│ │                      build_failures = []                                                     │ │
│ │                       build_tracker = <pip._internal.operations.build.build_tracker.BuildTr… │ │
│ │                                       object at 0x0000020A75B27700>                          │ │
│ │                           conflicts = (                                                      │ │
│ │                                       │   {                                                  │ │
│ │                                       │   │   'setuptools': PackageDetails(                  │ │
│ │                                       │   │   │   version=<Version('58.1.0')>,               │ │
│ │                                       │   │   │   dependencies=[]                            │ │
│ │                                       │   │   ),                                             │ │
│ │                                       │   │   'pip': PackageDetails(                         │ │
│ │                                       │   │   │   version=<Version('23.2.dev0')>,            │ │
│ │                                       │   │   │   dependencies=[]                            │ │
│ │                                       │   │   )                                              │ │
│ │                                       │   },                                                 │ │
│ │                                       │   ({}, {})                                           │ │
│ │                                       )                                                      │ │
│ │                           directory = <repr-error 'Attempted to access deleted path:         │ │
│ │                                       C:\\Users\\%USER%\\AppData\\Local\\Temp\\pip-install-e… │ │
│ │                              finder = <pip._internal.index.package_finder.PackageFinder      │ │
│ │                                       object at 0x0000020A75B27820>                          │ │
│ │                      global_options = []                                                     │ │
│ │ installing_into_current_environment = True                                                   │ │
│ │                       modifying_pip = True                                                   │ │
│ │                             options = <Values at 0x20a75af6d90: {'help': None, 'debug_mode': │ │
│ │                                       1, 'isolated_mode': False, 'require_venv': False,      │ │
│ │                                       'python': None, 'verbose': 0, 'version': None,         │ │
│ │                                       'quiet': 0, 'log': None, 'no_input': False,            │ │
│ │                                       'keyring_provider': 'auto', 'proxy': '', 'retries': 5, │ │
│ │                                       'timeout': 15, 'exists_action': [], 'trusted_hosts':   │ │
│ │                                       [], 'cert': None, 'client_cert': None, 'cache_dir':    │ │
│ │                                       'c:\\users\\%USER%\\appdata\\local\\pip\\cache',        │ │
│ │                                       'disable_pip_version_check': False, 'no_color': False, │ │
│ │                                       'no_python_version_warning': False,                    │ │
│ │                                       'features_enabled': [], 'deprecated_features_enabled': │ │
│ │                                       [], 'requirements': [], 'constraints': [],             │ │
│ │                                       'ignore_dependencies': False, 'pre': False,            │ │
│ │                                       'editables': ['.'], 'dry_run': False, 'target_dir':    │ │
│ │                                       None, 'platforms': None, 'python_version': None,       │ │
│ │                                       'implementation': None, 'abis': None, 'use_user_site': │ │
│ │                                       False, 'root_path': None, 'prefix_path': None,         │ │
│ │                                       'src_dir': 'C:\\Users\\%USER%\\Dev\\pip\\.venv\\src',   │ │
│ │                                       'upgrade': None, 'upgrade_strategy': 'only-if-needed', │ │
│ │                                       'force_reinstall': None, 'ignore_installed': None,     │ │
│ │                                       'ignore_requires_python': None, 'build_isolation':     │ │
│ │                                       True, 'use_pep517': None, 'check_build_deps': False,   │ │
│ │                                       'override_externally_managed': None,                   │ │
│ │                                       'config_settings': None, 'global_options': None,       │ │
│ │                                       'compile': True, 'warn_script_location': True,         │ │
│ │                                       'warn_about_conflicts': True, 'format_control':        │ │
│ │                                       FormatControl(set(), set()), 'prefer_binary': False,   │ │
│ │                                       'require_hashes': False, 'progress_bar': 'on',         │ │
│ │                                       'root_user_action': 'warn', 'index_url':               │ │
│ │                                       'https://pypi.org/simple', 'extra_index_urls': [],     │ │
│ │                                       'no_index': False, 'find_links': [],                   │ │
│ │                                       'json_report_file': None, 'no_clean': False}>          │ │
│ │                             pip_req = <InstallRequirement object: pip==23.2.dev0 from        │ │
│ │                                       file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-w… │ │
│ │                                       editable=True>                                         │ │
│ │                            preparer = <pip._internal.operations.prepare.RequirementPreparer  │ │
│ │                                       object at 0x0000020A721E8B50>                          │ │
│ │                                 req = <InstallRequirement object:                            │ │
│ │                                       file:///C:/Users/%USER%/Dev/pip editable=True>          │ │
│ │                                reqs = [                                                      │ │
│ │                                       │   <InstallRequirement object:                        │ │
│ │                                       file:///C:/Users/%USER%/Dev/pip editable=True>          │ │
│ │                                       ]                                                      │ │
│ │                       reqs_to_build = [                                                      │ │
│ │                                       │   <InstallRequirement object: pip==23.2.dev0 from    │ │
│ │                                       file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-w… │ │
│ │                                       editable=True>                                         │ │
│ │                                       ]                                                      │ │
│ │                     requirement_set = <RequirementSet object; 1 requirement(s):              │ │
│ │                                       pip==23.2.dev0>                                        │ │
│ │                            resolver = <pip._internal.resolution.resolvelib.resolver.Resolver │ │
│ │                                       object at 0x0000020A7225AE20>                          │ │
│ │                                self = <pip._internal.commands.install.InstallCommand object  │ │
│ │                                       at 0x0000020A7584F100>                                 │ │
│ │                             session = <pip._internal.network.session.PipSession object at    │ │
│ │                                       0x0000020A749F12B0>                                    │ │
│ │         should_warn_about_conflicts = True                                                   │ │
│ │                       target_python = <pip._internal.models.target_python.TargetPython       │ │
│ │                                       object at 0x0000020A75AEA9A0>                          │ │
│ │                     target_temp_dir = None                                                   │ │
│ │                target_temp_dir_path = None                                                   │ │
│ │                          to_install = [                                                      │ │
│ │                                       │   <InstallRequirement object: pip==23.2.dev0 from    │ │
│ │                                       file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-w… │ │
│ │                                       editable=True>                                         │ │
│ │                                       ]                                                      │ │
│ │                    upgrade_strategy = 'to-satisfy-only'                                      │ │
│ │                warn_script_location = True                                                   │ │
│ │                         wheel_cache = <pip._internal.cache.WheelCache object at              │ │
│ │                                       0x0000020A7211A9A0>                                    │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\req\__init__.py:72 in               │
│ install_given_reqs                                                                               │
│                                                                                                  │
│   69 │   │   │   │   uninstalled_pathset = None                                                  │
│   70 │   │   │                                                                                   │
│   71 │   │   │   try:                                                                            │
│ ❱ 72 │   │   │   │   requirement.install(                                                        │
│   73 │   │   │   │   │   global_options,                                                         │
│   74 │   │   │   │   │   root=root,                                                              │
│   75 │   │   │   │   │   home=home,                                                              │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │       global_options = []                                                                    │ │
│ │                 home = None                                                                  │ │
│ │            installed = []                                                                    │ │
│ │               prefix = None                                                                  │ │
│ │            pycompile = True                                                                  │ │
│ │             req_name = 'pip'                                                                 │ │
│ │          requirement = <InstallRequirement object: pip==23.2.dev0 from                       │ │
│ │                        file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-wheel-cache-8yqp… │ │
│ │                        editable=True>                                                        │ │
│ │         requirements = [                                                                     │ │
│ │                        │   <InstallRequirement object: pip==23.2.dev0 from                   │ │
│ │                        file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-wheel-cache-8yqp… │ │
│ │                        editable=True>                                                        │ │
│ │                        ]                                                                     │ │
│ │                 root = None                                                                  │ │
│ │           to_install = OrderedDict([('pip', <InstallRequirement object: pip==23.2.dev0 from  │ │
│ │                        file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-wheel-cache-8yqp… │ │
│ │                        editable=True>)])                                                     │ │
│ │  uninstalled_pathset = <pip._internal.req.req_uninstall.UninstallPathSet object at           │ │
│ │                        0x0000020A75C56640>                                                   │ │
│ │        use_user_site = False                                                                 │ │
│ │ warn_script_location = True                                                                  │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\req\req_install.py:800 in install   │
│                                                                                                  │
│   797 │   │   assert self.is_wheel                                                               │
│   798 │   │   assert self.local_file_path                                                        │
│   799 │   │                                                                                      │
│ ❱ 800 │   │   install_wheel(                                                                     │
│   801 │   │   │   self.name,                                                                     │
│   802 │   │   │   self.local_file_path,                                                          │
│   803 │   │   │   scheme=scheme,                                                                 │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │       global_options = []                                                                    │ │
│ │                 home = None                                                                  │ │
│ │               prefix = None                                                                  │ │
│ │            pycompile = True                                                                  │ │
│ │                 root = None                                                                  │ │
│ │               scheme = <pip._internal.models.scheme.Scheme object at 0x0000020A7265FB30>     │ │
│ │                 self = <InstallRequirement object: pip==23.2.dev0 from                       │ │
│ │                        file:///C:/Users/%USER%/AppData/Local/Temp/pip-ephem-wheel-cache-8yqp… │ │
│ │                        editable=True>                                                        │ │
│ │        use_user_site = False                                                                 │ │
│ │ warn_script_location = True                                                                  │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py:731 in  │
│ install_wheel                                                                                    │
│                                                                                                  │
│   728 ) -> None:                                                                                 │
│   729 │   with ZipFile(wheel_path, allowZip64=True) as z:                                        │
│   730 │   │   with req_error_context(req_description):                                           │
│ ❱ 731 │   │   │   _install_wheel(                                                                │
│   732 │   │   │   │   name=name,                                                                 │
│   733 │   │   │   │   wheel_zip=z,                                                               │
│   734 │   │   │   │   wheel_path=wheel_path,                                                     │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │           direct_url = <pip._internal.models.direct_url.DirectUrl object at                  │ │
│ │                        0x0000020A75BEB550>                                                   │ │
│ │                 name = 'pip'                                                                 │ │
│ │            pycompile = True                                                                  │ │
│ │      req_description = 'pip==23.2.dev0'                                                      │ │
│ │            requested = True                                                                  │ │
│ │               scheme = <pip._internal.models.scheme.Scheme object at 0x0000020A7265FB30>     │ │
│ │ warn_script_location = True                                                                  │ │
│ │           wheel_path = 'C:\\Users\\%USER%\\AppData\\Local\\Temp\\pip-ephem-wheel-cache-8yqpb… │ │
│ │                    z = <zipfile.ZipFile [closed]>                                            │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py:648 in  │
│ _install_wheel                                                                                   │
│                                                                                                  │
│   645 │                                                                                          │
│   646 │   gui_scripts_to_generate = list(starmap("{} = {}".format, gui.items()))                 │
│   647 │                                                                                          │
│ ❱ 648 │   generated_console_scripts = maker.make_multiple(scripts_to_generate)                   │
│   649 │   generated.extend(generated_console_scripts)                                            │
│   650 │                                                                                          │
│   651 │   generated.extend(maker.make_multiple(gui_scripts_to_generate, {"gui": True}))          │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ assert_no_path_traversal = <function _install_wheel.<locals>.assert_no_path_traversal at     │ │
│ │                            0x0000020A75D218B0>                                               │ │
│ │                  changed = set()                                                             │ │
│ │                  console = {                                                                 │ │
│ │                            │   'pip': 'pip._internal.cli.main:main',                         │ │
│ │                            │   'pip3': 'pip._internal.cli.main:main',                        │ │
│ │                            │   'pip3.9': 'pip._internal.cli.main:main'                       │ │
│ │                            }                                                                 │ │
│ │   data_scheme_file_maker = <function _install_wheel.<locals>.data_scheme_file_maker at       │ │
│ │                            0x0000020A75D213A0>                                               │ │
│ │        data_scheme_paths = <filter object at 0x0000020A75C58F40>                             │ │
│ │               direct_url = <pip._internal.models.direct_url.DirectUrl object at              │ │
│ │                            0x0000020A75BEB550>                                               │ │
│ │             distribution = pip 23.2.dev0                                                     │ │
│ │                            (C:\Users\%USER%\AppData\Local\Temp\pip-ephem-wheel-cache-8yqpb8j… │ │
│ │                     file = <pip._internal.operations.install.wheel.ZipBackedFile object at   │ │
│ │                            0x0000020A75C79550>                                               │ │
│ │               file_paths = <itertools.filterfalse object at 0x0000020A75C58E20>              │ │
│ │                    files = <itertools.chain object at 0x0000020A75C79220>                    │ │
│ │                generated = []                                                                │ │
│ │                      gui = {}                                                                │ │
│ │  gui_scripts_to_generate = []                                                                │ │
│ │                 info_dir = 'pip-23.2.dev0.dist-info'                                         │ │
│ │                installed = {                                                                 │ │
│ │                            │   '__editable__.pip-23.2.dev0.pth':                             │ │
│ │                            '__editable__.pip-23.2.dev0.pth',                                 │ │
│ │                            │   'pip-23.2.dev0.dist-info/AUTHORS.txt':                        │ │
│ │                            'pip-23.2.dev0.dist-info/AUTHORS.txt',                            │ │
│ │                            │   'pip-23.2.dev0.dist-info/LICENSE.txt':                        │ │
│ │                            'pip-23.2.dev0.dist-info/LICENSE.txt',                            │ │
│ │                            │   'pip-23.2.dev0.dist-info/METADATA':                           │ │
│ │                            'pip-23.2.dev0.dist-info/METADATA',                               │ │
│ │                            │   'pip-23.2.dev0.dist-info/WHEEL':                              │ │
│ │                            'pip-23.2.dev0.dist-info/WHEEL',                                  │ │
│ │                            │   'pip-23.2.dev0.dist-info/entry_points.txt':                   │ │
│ │                            'pip-23.2.dev0.dist-info/entry_points.txt',                       │ │
│ │                            │   'pip-23.2.dev0.dist-info/top_level.txt':                      │ │
│ │                            'pip-23.2.dev0.dist-info/top_level.txt',                          │ │
│ │                            │   'pip-23.2.dev0.dist-info/RECORD':                             │ │
│ │                            'pip-23.2.dev0.dist-info/RECORD'                                  │ │
│ │                            }                                                                 │ │
│ │      is_data_scheme_path = <function _install_wheel.<locals>.is_data_scheme_path at          │ │
│ │                            0x0000020A75D21280>                                               │ │
│ │              is_dir_path = <function _install_wheel.<locals>.is_dir_path at                  │ │
│ │                            0x0000020A75D21700>                                               │ │
│ │    is_entrypoint_wrapper = <function _install_wheel.<locals>.is_entrypoint_wrapper at        │ │
│ │                            0x0000020A75D21A60>                                               │ │
│ │    is_script_scheme_path = <function _install_wheel.<locals>.is_script_scheme_path at        │ │
│ │                            0x0000020A75D21550>                                               │ │
│ │                  lib_dir = 'C:\\Users\\%USER%\\Dev\\pip\\.venv\\Lib\\site-packages'           │ │
│ │    make_data_scheme_file = <function                                                         │ │
│ │                            _install_wheel.<locals>.data_scheme_file_maker.<locals>.make_dat… │ │
│ │                            at 0x0000020A75D21CA0>                                            │ │
│ │    make_root_scheme_file = <function                                                         │ │
│ │                            _install_wheel.<locals>.root_scheme_file_maker.<locals>.make_roo… │ │
│ │                            at 0x0000020A75D21820>                                            │ │
│ │                    maker = <pip._internal.operations.install.wheel.PipScriptMaker object at  │ │
│ │                            0x0000020A75C58FD0>                                               │ │
│ │                 metadata = <email.message.Message object at 0x0000020A75C58EB0>              │ │
│ │                     name = 'pip'                                                             │ │
│ │       other_scheme_files = <map object at 0x0000020A75C790A0>                                │ │
│ │       other_scheme_paths = <itertools.filterfalse object at 0x0000020A75C79040>              │ │
│ │                    paths = [                                                                 │ │
│ │                            │   '__editable__.pip-23.2.dev0.pth',                             │ │
│ │                            │   'pip-23.2.dev0.dist-info/AUTHORS.txt',                        │ │
│ │                            │   'pip-23.2.dev0.dist-info/LICENSE.txt',                        │ │
│ │                            │   'pip-23.2.dev0.dist-info/METADATA',                           │ │
│ │                            │   'pip-23.2.dev0.dist-info/WHEEL',                              │ │
│ │                            │   'pip-23.2.dev0.dist-info/entry_points.txt',                   │ │
│ │                            │   'pip-23.2.dev0.dist-info/top_level.txt',                      │ │
│ │                            │   'pip-23.2.dev0.dist-info/RECORD'                              │ │
│ │                            ]                                                                 │ │
│ │          pyc_output_path = <function _install_wheel.<locals>.pyc_output_path at              │ │
│ │                            0x0000020A75D214C0>                                               │ │
│ │    pyc_source_file_paths = <function _install_wheel.<locals>.pyc_source_file_paths at        │ │
│ │                            0x0000020A75D21B80>                                               │ │
│ │                pycompile = True                                                              │ │
│ │         record_installed = <function _install_wheel.<locals>.record_installed at             │ │
│ │                            0x0000020A75D21940>                                               │ │
│ │                requested = True                                                              │ │
│ │   root_scheme_file_maker = <function _install_wheel.<locals>.root_scheme_file_maker at       │ │
│ │                            0x0000020A75D21F70>                                               │ │
│ │        root_scheme_paths = <itertools.filterfalse object at 0x0000020A75C58F10>              │ │
│ │                   scheme = <pip._internal.models.scheme.Scheme object at 0x0000020A7265FB30> │ │
│ │      script_scheme_files = <map object at 0x0000020A75C791C0>                                │ │
│ │      script_scheme_paths = <filter object at 0x0000020A75C79070>                             │ │
│ │      scripts_to_generate = [                                                                 │ │
│ │                            │   'pip = pip._internal.cli.main:main',                          │ │
│ │                            │   'pip3 = pip._internal.cli.main:main',                         │ │
│ │                            │   'pip3.9 = pip._internal.cli.main:main'                        │ │
│ │                            ]                                                                 │ │
│ │                   stdout = <pip._internal.utils.misc.StreamWrapper object at                 │ │
│ │                            0x0000020A75D211F0>                                               │ │
│ │     warn_script_location = True                                                              │ │
│ │               wheel_path = 'C:\\Users\\%USER%\\AppData\\Local\\Temp\\pip-ephem-wheel-cache-8… │ │
│ │                wheel_zip = <zipfile.ZipFile [closed]>                                        │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_vendor\distlib\scripts.py:436 in             │
│ make_multiple                                                                                    │
│                                                                                                  │
│   433 │   │   """                                                                                │
│   434 │   │   filenames = []                                                                     │
│   435 │   │   for specification in specifications:                                               │
│ ❱ 436 │   │   │   filenames.extend(self.make(specification, options))                            │
│   437 │   │   return filenames                                                                   │
│   438                                                                                            │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │      filenames = []                                                                          │ │
│ │        options = None                                                                        │ │
│ │           self = <pip._internal.operations.install.wheel.PipScriptMaker object at            │ │
│ │                  0x0000020A75C58FD0>                                                         │ │
│ │  specification = 'pip = pip._internal.cli.main:main'                                         │ │
│ │ specifications = [                                                                           │ │
│ │                  │   'pip = pip._internal.cli.main:main',                                    │ │
│ │                  │   'pip3 = pip._internal.cli.main:main',                                   │ │
│ │                  │   'pip3.9 = pip._internal.cli.main:main'                                  │ │
│ │                  ]                                                                           │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_internal\operations\install\wheel.py:429 in  │
│ make                                                                                             │
│                                                                                                  │
│   426 │   │   self, specification: str, options: Optional[Dict[str, Any]] = None                 │
│   427 │   ) -> List[str]:                                                                        │
│   428 │   │   _raise_for_invalid_entrypoint(specification)                                       │
│ ❱ 429 │   │   return super().make(specification, options)                                        │
│   430                                                                                            │
│   431                                                                                            │
│   432 def _install_wheel(                                                                        │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │       options = None                                                                         │ │
│ │          self = <pip._internal.operations.install.wheel.PipScriptMaker object at             │ │
│ │                 0x0000020A75C58FD0>                                                          │ │
│ │ specification = 'pip = pip._internal.cli.main:main'                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_vendor\distlib\scripts.py:425 in make        │
│                                                                                                  │
│   422 │   │   if entry is None:                                                                  │
│   423 │   │   │   self._copy_script(specification, filenames)                                    │
│   424 │   │   else:                                                                              │
│ ❱ 425 │   │   │   self._make_script(entry, filenames, options=options)                           │
│   426 │   │   return filenames                                                                   │
│   427 │                                                                                          │
│   428 │   def make_multiple(self, specifications, options=None):                                 │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │         entry = <ExportEntry pip = pip._internal.cli.main:main []>                           │ │
│ │     filenames = []                                                                           │ │
│ │       options = None                                                                         │ │
│ │          self = <pip._internal.operations.install.wheel.PipScriptMaker object at             │ │
│ │                 0x0000020A75C58FD0>                                                          │ │
│ │ specification = 'pip = pip._internal.cli.main:main'                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_vendor\distlib\scripts.py:325 in             │
│ _make_script                                                                                     │
│                                                                                                  │
│   322 │   │   │   ext = 'pyw'                                                                    │
│   323 │   │   else:                                                                              │
│   324 │   │   │   ext = 'py'                                                                     │
│ ❱ 325 │   │   self._write_script(scriptnames, shebang, script, filenames, ext)                   │
│   326 │                                                                                          │
│   327 │   def _copy_script(self, script, filenames):                                             │
│   328 │   │   adjust = False                                                                     │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │       entry = <ExportEntry pip = pip._internal.cli.main:main []>                             │ │
│ │         ext = 'py'                                                                           │ │
│ │   filenames = []                                                                             │ │
│ │     options = None                                                                           │ │
│ │ post_interp = b''                                                                            │ │
│ │      script = b'# -*- coding: utf-8 -*-\nimport re\nimport sys\nfrom pip._internal.cli.main  │ │
│ │               import '+122                                                                   │ │
│ │ scriptnames = {'pip'}                                                                        │ │
│ │        self = <pip._internal.operations.install.wheel.PipScriptMaker object at               │ │
│ │               0x0000020A75C58FD0>                                                            │ │
│ │     shebang = b'#!C:\\Users\\%USER%\\Dev\\pip\\.venv\\Scripts\\python.exe\n'                  │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_vendor\distlib\scripts.py:249 in             │
│ _write_script                                                                                    │
│                                                                                                  │
│   246 │   │   │   script_bytes = shebang + script_bytes                                          │
│   247 │   │   else:  # pragma: no cover                                                          │
│   248 │   │   │   if ext == 'py':                                                                │
│ ❱ 249 │   │   │   │   launcher = self._get_launcher('t')                                         │
│   250 │   │   │   else:                                                                          │
│   251 │   │   │   │   launcher = self._get_launcher('w')                                         │
│   252 │   │   │   stream = BytesIO()                                                             │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │          ext = 'py'                                                                          │ │
│ │    filenames = []                                                                            │ │
│ │      linesep = b'\r\n'                                                                       │ │
│ │        names = {'pip'}                                                                       │ │
│ │ script_bytes = b'# -*- coding: utf-8 -*-\nimport re\nimport sys\nfrom pip._internal.cli.main │ │
│ │                import '+122                                                                  │ │
│ │         self = <pip._internal.operations.install.wheel.PipScriptMaker object at              │ │
│ │                0x0000020A75C58FD0>                                                           │ │
│ │      shebang = b'#!C:\\Users\\%USER%\\Dev\\pip\\.venv\\Scripts\\python.exe\n\r\n'             │ │
│ │ use_launcher = True                                                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ C:\Users\%USER%\Dev\pip\.venv\lib\site-packages\pip\_vendor\distlib\scripts.py:404 in             │
│ _get_launcher                                                                                    │
│                                                                                                  │
│   401 │   │   │   if not resource:                                                               │
│   402 │   │   │   │   msg = ('Unable to find resource %s in package %s' % (name,                 │
│   403 │   │   │   │   │      distlib_package))                                                   │
│ ❱ 404 │   │   │   │   raise ValueError(msg)                                                      │
│   405 │   │   │   return resource.bytes                                                          │
│   406 │                                                                                          │
│   407 │   # Public API follows                                                                   │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │            bits = '64'                                                                       │ │
│ │ distlib_package = 'pip._vendor.distlib'                                                      │ │
│ │            kind = 't'                                                                        │ │
│ │             msg = 'Unable to find resource t64.exe in package pip._vendor.distlib'           │ │
│ │            name = 't64.exe'                                                                  │ │
│ │ platform_suffix = ''                                                                         │ │
│ │        resource = None                                                                       │ │
│ │            self = <pip._internal.operations.install.wheel.PipScriptMaker object at           │ │
│ │                   0x0000020A75C58FD0>                                                        │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

Some information about my system -

OS

Windows 11 (22H2 25330.1000, prerelease 230323-1609)

Python Version

3.9.13

Pip Version (after upgrade)

23.1.1

A bypass (not solution)

If you run the same command again, it works -

(.venv) (base) C:\Users\%USER%\Dev\pip>python -m pip install -e .
Obtaining file:///C:/Users/%USER%/Dev/pip
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: pip
  Building editable for pip (pyproject.toml) ... done
  Created wheel for pip: filename=pip-23.2.dev0-0.editable-py3-none-any.whl size=9600 sha256=bc634a28df62a4f6935ff8897d57203d8e5b889513ad90c29791684becb265f7
  Stored in directory: C:\Users\%USER%\AppData\Local\Temp\pip-ephem-wheel-cache-8xubiuwy\wheels\58\47\99\6fb92630c092fbbf668383eeb63eba6d482db8233e5903b740
Successfully built pip
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.2.dev0
    Uninstalling pip-23.2.dev0:
      Successfully uninstalled pip-23.2.dev0
Successfully installed pip-23.2.dev0

Packages installed in base conda environment -

(.venv) (base) C:\Users\pandy\Dev\pip>pip list
Package    Version   Editable project location
---------- --------- -------------------------
pip        23.2.dev0 C:\Users\pandy\Dev\pip
setuptools 58.1.0

(.venv) (base) C:\Users\pandy\Dev\pip>conda list
# packages in environment at C:\Users\pandy\anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0            py39haa95532_0
absl-py                   1.4.0                    pypi_0    pypi
alabaster                 0.7.12             pyhd3eb1b0_0
ale-py                    0.7.4                    pypi_0    pypi
anaconda                  2022.10                  py39_0
anaconda-client           1.11.0           py39haa95532_0
anaconda-navigator        2.3.2            py39haa95532_0
anaconda-project          0.11.1           py39haa95532_0
antlr4-python3-runtime    4.9.3                    pypi_0    pypi
anyio                     3.5.0            py39haa95532_0
appdirs                   1.4.4              pyhd3eb1b0_0
argon2-cffi               21.3.0             pyhd3eb1b0_0
argon2-cffi-bindings      21.2.0           py39h2bbff1b_0
arrow                     1.2.2              pyhd3eb1b0_0
astroid                   2.11.7           py39haa95532_0
astropy                   5.1              py39h080aedc_0
atomicwrites              1.4.0                      py_0
attrs                     21.4.0             pyhd3eb1b0_0
automat                   20.2.0                     py_0
autopep8                  1.6.0              pyhd3eb1b0_1
autorom                   0.4.2                    pypi_0    pypi
autorom-accept-rom-license 0.5.4                    pypi_0    pypi
babel                     2.9.1              pyhd3eb1b0_0
backcall                  0.2.0              pyhd3eb1b0_0
backports                 1.1                pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4              pyhd3eb1b0_0
backports.tempfile        1.0                pyhd3eb1b0_1
backports.weakref         1.0.post1                  py_1
bcrypt                    3.2.0            py39h2bbff1b_1
beautifulsoup4            4.11.1           py39haa95532_0
binaryornot               0.4.4              pyhd3eb1b0_1
bitarray                  2.5.1            py39h2bbff1b_0
bkcharts                  0.2              py39haa95532_1
black                     22.6.0           py39haa95532_0
blas                      1.0                         mkl
bleach                    4.1.0              pyhd3eb1b0_0
blosc                     1.21.0               h19a0ad4_1
bokeh                     2.4.3            py39haa95532_0
boto3                     1.24.28          py39haa95532_0
botocore                  1.27.28          py39haa95532_0
bottleneck                1.3.5            py39h080aedc_0
brotli                    1.0.9                h2bbff1b_7
brotli-bin                1.0.9                h2bbff1b_7
brotlipy                  0.7.0           py39h2bbff1b_1003
bzip2                     1.0.8                he774522_0
ca-certificates           2022.07.19           haa95532_0
cachetools                5.3.0                    pypi_0    pypi
certifi                   2022.9.14        py39haa95532_0
cffi                      1.15.1           py39h2bbff1b_0
cfitsio                   3.470                h2bbff1b_7
chardet                   4.0.0           py39haa95532_1003
charls                    2.2.0                h6c2663c_0
charset-normalizer        2.0.4              pyhd3eb1b0_0
click                     8.0.4            py39haa95532_0
cloudpickle               2.0.0              pyhd3eb1b0_0
clyent                    1.2.2            py39haa95532_1
colorama                  0.4.5            py39haa95532_0
colorcet                  3.0.0            py39haa95532_0
comtypes                  1.1.10          py39haa95532_1002
conda                     23.1.0           py39haa95532_0
conda-build               3.22.0           py39haa95532_0
conda-content-trust       0.1.3            py39haa95532_0
conda-env                 2.6.0                haa95532_1
conda-pack                0.6.0              pyhd3eb1b0_0
conda-package-handling    1.9.0            py39h8cc25b3_0
conda-repo-cli            1.0.20           py39haa95532_0
conda-token               0.4.0              pyhd3eb1b0_0
conda-verify              3.4.2                      py_1
console_shortcut          0.1.1                         4
constantly                15.1.0             pyh2b92418_0
cookiecutter              1.7.3              pyhd3eb1b0_0
cpuonly                   2.0                           0    pytorch
cryptography              37.0.1           py39h21b164f_0
cssselect                 1.1.0              pyhd3eb1b0_0
curl                      7.84.0               h2bbff1b_0
cycler                    0.11.0             pyhd3eb1b0_0
cython                    0.29.32          py39hd77b12b_0
cytoolz                   0.11.0           py39h2bbff1b_0
daal4py                   2021.6.0         py39h757b272_1
dal                       2021.6.0           h59b6b97_874
dask                      2022.7.0         py39haa95532_0
dask-core                 2022.7.0         py39haa95532_0
dataclasses               0.8                pyh6d0b6a4_7
datashader                0.14.1           py39haa95532_0
datashape                 0.5.4            py39haa95532_1
debugpy                   1.5.1            py39hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
diff-match-patch          20200713           pyhd3eb1b0_0
dill                      0.3.4              pyhd3eb1b0_0
distributed               2022.7.0         py39haa95532_0
docutils                  0.18.1           py39haa95532_3
entrypoints               0.4              py39haa95532_0
et_xmlfile                1.1.0            py39haa95532_0
fftw                      3.3.9                h2bbff1b_1
filelock                  3.6.0              pyhd3eb1b0_0
flake8                    4.0.1              pyhd3eb1b0_1
flask                     1.1.2              pyhd3eb1b0_0
fonttools                 4.25.0             pyhd3eb1b0_0
freetype                  2.10.4               hd328e21_0
fsspec                    2022.7.1         py39haa95532_0
future                    0.18.2           py39haa95532_1
gensim                    4.1.2            py39hd77b12b_0
giflib                    5.2.1                h62dcd97_0
glob2                     0.7                pyhd3eb1b0_0
google-auth               2.16.0                   pypi_0    pypi
google-auth-oauthlib      0.4.6                    pypi_0    pypi
greenlet                  1.1.1            py39hd77b12b_0
grpcio                    1.51.1                   pypi_0    pypi
gym                       0.21.0                   pypi_0    pypi
gymnasium                 0.27.1                   pypi_0    pypi
gymnasium-notices         0.0.1                    pypi_0    pypi
h5py                      3.7.0            py39h3de5c98_0
hdf5                      1.10.6               h1756f20_1
heapdict                  1.0.1              pyhd3eb1b0_0
holoviews                 1.15.0           py39haa95532_0
hvplot                    0.8.0            py39haa95532_0
hyperlink                 21.0.0             pyhd3eb1b0_0
icc_rt                    2022.1.0             h6049295_2
icu                       58.2                 ha925a31_3
idna                      3.3                pyhd3eb1b0_0
imagecodecs               2021.8.26        py39hc0a7faf_1
imageio                   2.19.3           py39haa95532_0
imagesize                 1.4.1            py39haa95532_0
importlib-metadata        4.13.0                   pypi_0    pypi
importlib-resources       5.10.2                   pypi_0    pypi
importlib_metadata        4.11.3               hd3eb1b0_0
incremental               21.3.0             pyhd3eb1b0_0
inflection                0.5.1            py39haa95532_0
iniconfig                 1.1.1              pyhd3eb1b0_0
intake                    0.6.5              pyhd3eb1b0_0
intel-openmp              2021.4.0          haa95532_3556
intervaltree              3.1.0              pyhd3eb1b0_0
ipykernel                 6.15.2           py39haa95532_0
ipython                   7.31.1           py39haa95532_1
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.5              pyhd3eb1b0_1
isort                     5.9.3              pyhd3eb1b0_0
itemadapter               0.3.0              pyhd3eb1b0_0
itemloaders               1.0.4              pyhd3eb1b0_1
itsdangerous              2.0.1              pyhd3eb1b0_0
jax-jumpy                 0.2.0                    pypi_0    pypi
jdcal                     1.4.1              pyhd3eb1b0_0
jedi                      0.18.1           py39haa95532_1
jellyfish                 0.9.0            py39h2bbff1b_0
jinja2                    2.11.3             pyhd3eb1b0_0
jinja2-time               0.2.0              pyhd3eb1b0_3
jmespath                  0.10.0             pyhd3eb1b0_0
joblib                    1.1.0              pyhd3eb1b0_0
jpeg                      9e                   h2bbff1b_0
jq                        1.6                  haa95532_1
json5                     0.9.6              pyhd3eb1b0_0
jsonschema                4.16.0           py39haa95532_0
jupyter                   1.0.0            py39haa95532_8
jupyter_client            7.3.4            py39haa95532_0
jupyter_console           6.4.3              pyhd3eb1b0_0
jupyter_core              4.11.1           py39haa95532_0
jupyter_server            1.18.1           py39haa95532_0
jupyterlab                3.4.4            py39haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_server         2.10.3             pyhd3eb1b0_1
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
keyring                   23.4.0           py39haa95532_0
kiwisolver                1.4.2            py39hd77b12b_0
lazy-object-proxy         1.6.0            py39h2bbff1b_0
lcms2                     2.12                 h83e58a3_0
lerc                      3.0                  hd77b12b_0
libaec                    1.0.4                h33f27b4_1
libarchive                3.6.1                hebabd0d_0
libbrotlicommon           1.0.9                h2bbff1b_7
libbrotlidec              1.0.9                h2bbff1b_7
libbrotlienc              1.0.9                h2bbff1b_7
libcurl                   7.84.0               h86230a5_0
libdeflate                1.8                  h2bbff1b_5
libiconv                  1.16                 h2bbff1b_2
liblief                   0.11.5               hd77b12b_1
libpng                    1.6.37               h2a8f88b_0
libsodium                 1.0.18               h62dcd97_0
libspatialindex           1.9.3                h6c2663c_0
libssh2                   1.10.0               hcd4344a_0
libtiff                   4.4.0                h8a3f274_0
libtorrent                2.0.7                    pypi_0    pypi
libuv                     1.40.0               he774522_0
libwebp                   1.2.2                h2bbff1b_0
libxml2                   2.9.14               h0ad7f3c_0
libxslt                   1.1.35               h2bbff1b_0
libzopfli                 1.0.3                ha925a31_0
llvmlite                  0.38.0           py39h23ce68f_0
locket                    1.0.0            py39haa95532_0
luxai-s2                  2.1.9                    pypi_0    pypi
lxml                      4.9.1            py39h1985fb9_0
lz4                       3.1.3            py39h2bbff1b_0
lz4-c                     1.9.3                h2bbff1b_1
lzo                       2.10                 he774522_2
m2-msys2-runtime          2.5.0.17080.65c939c               3
m2-patch                  2.7.5                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  3.3.4            py39haa95532_0
markdown-it-py            2.1.0                    pypi_0    pypi
markupsafe                2.0.1            py39h2bbff1b_0
matplotlib                3.5.2            py39haa95532_0
matplotlib-base           3.5.2            py39hd77b12b_0
matplotlib-inline         0.1.6            py39haa95532_0
mccabe                    0.6.1            py39haa95532_2
mdurl                     0.1.2                    pypi_0    pypi
menuinst                  1.4.19           py39h59b6b97_0
mistune                   0.8.4           py39h2bbff1b_1000
mkl                       2021.4.0           haa95532_640
mkl-service               2.4.0            py39h2bbff1b_0
mkl_fft                   1.3.1            py39h277e83a_0
mkl_random                1.2.2            py39hf11a4ad_0
mock                      4.0.3              pyhd3eb1b0_0
mpmath                    1.2.1            py39haa95532_0
msgpack-python            1.0.3            py39h59b6b97_0
msys2-conda-epoch         20160418                      1
multipledispatch          0.6.0            py39haa95532_0
munkres                   1.1.4                      py_0
mypy_extensions           0.4.3            py39haa95532_1
navigator-updater         0.3.0            py39haa95532_0
nbclassic                 0.3.5              pyhd3eb1b0_0
nbclient                  0.5.13           py39haa95532_0
nbconvert                 6.4.4            py39haa95532_0
nbformat                  5.5.0            py39haa95532_0
nest-asyncio              1.5.5            py39haa95532_0
networkx                  2.8.4            py39haa95532_0
nltk                      3.7                pyhd3eb1b0_0
nose                      1.3.7           pyhd3eb1b0_1008
notebook                  6.4.12           py39haa95532_0
numba                     0.55.1           py39hf11a4ad_0
numexpr                   2.8.3            py39hb80d3ca_0
numpy                     1.21.5           py39h7a0a035_3
numpy-base                1.21.5           py39hca35cd5_3
numpydoc                  1.4.0            py39haa95532_0
oauthlib                  3.2.2                    pypi_0    pypi
olefile                   0.46               pyhd3eb1b0_0
omegaconf                 2.3.0                    pypi_0    pypi
opencv-python             4.7.0.68                 pypi_0    pypi
openjpeg                  2.4.0                h4fc8c34_0
openpyxl                  3.0.10           py39h2bbff1b_0
openssl                   1.1.1q               h2bbff1b_0
packaging                 21.3               pyhd3eb1b0_0
pandas                    1.4.4            py39hd77b12b_0
pandocfilters             1.5.0              pyhd3eb1b0_0
panel                     0.13.1           py39haa95532_0
param                     1.12.0             pyhd3eb1b0_0
paramiko                  2.8.1              pyhd3eb1b0_0
parsel                    1.6.0            py39haa95532_0
parso                     0.8.3              pyhd3eb1b0_0
partd                     1.2.0              pyhd3eb1b0_1
pathlib                   1.0.1              pyhd3eb1b0_1
pathspec                  0.9.0            py39haa95532_0
patsy                     0.5.2            py39haa95532_1
pep8                      1.7.1            py39haa95532_1
pettingzoo                1.22.3                   pypi_0    pypi
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    9.2.0            py39hdc2b20a_1
pkginfo                   1.8.2              pyhd3eb1b0_0
platformdirs              2.5.2            py39haa95532_0
plotly                    5.9.0            py39haa95532_0
pluggy                    1.0.0            py39haa95532_1
powershell_shortcut       0.0.1                         3
poyo                      0.5.0              pyhd3eb1b0_0
prometheus_client         0.14.1           py39haa95532_0
prompt-toolkit            3.0.20             pyhd3eb1b0_0
prompt_toolkit            3.0.20               hd3eb1b0_0
protego                   0.1.16                     py_0
protobuf                  3.20.3                   pypi_0    pypi
psutil                    5.9.0            py39h2bbff1b_0
ptyprocess                0.7.0              pyhd3eb1b0_2
py                        1.11.0             pyhd3eb1b0_0
py-lief                   0.11.5           py39hd77b12b_1
pyasn1                    0.4.8              pyhd3eb1b0_0
pyasn1-modules            0.2.8                      py_0
pycodestyle               2.8.0              pyhd3eb1b0_0
pycosat                   0.6.3            py39h2bbff1b_0
pycparser                 2.21               pyhd3eb1b0_0
pyct                      0.4.8            py39haa95532_1
pycurl                    7.45.1           py39hcd4344a_0
pydispatcher              2.0.5            py39haa95532_2
pydocstyle                6.1.1              pyhd3eb1b0_0
pyerfa                    2.0.0            py39h2bbff1b_0
pyflakes                  2.4.0              pyhd3eb1b0_0
pygame                    2.1.2                    pypi_0    pypi
pygments                  2.14.0                   pypi_0    pypi
pyhamcrest                2.0.2              pyhd3eb1b0_2
pyjwt                     2.4.0            py39haa95532_0
pylint                    2.14.5           py39haa95532_0
pyls-spyder               0.4.0              pyhd3eb1b0_0
pynacl                    1.5.0            py39h8cc25b3_0
pyodbc                    4.0.34           py39hd77b12b_0
pyopenssl                 22.0.0             pyhd3eb1b0_0
pyotp                     2.8.0                    pypi_0    pypi
pyparsing                 3.0.9            py39haa95532_0
pyqt                      5.9.2            py39hd77b12b_6
pyrsistent                0.18.0           py39h196d8e1_0
pysocks                   1.7.1            py39haa95532_0
pytables                  3.6.1            py39h56d22b6_1
pytest                    7.1.2            py39haa95532_0
python                    3.9.13               h6244533_1
python-dateutil           2.8.2              pyhd3eb1b0_0
python-fastjsonschema     2.16.2           py39haa95532_0
python-libarchive-c       2.9                pyhd3eb1b0_1
python-lsp-black          1.0.0              pyhd3eb1b0_0
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0
python-lsp-server         1.3.3              pyhd3eb1b0_0
python-slugify            5.0.2              pyhd3eb1b0_0
python-snappy             0.6.0            py39hd77b12b_3
pytorch                   1.13.1              py3.9_cpu_0    pytorch
pytorch-mutex             1.0                         cpu    pytorch
pytz                      2022.1           py39haa95532_0
pyviz_comms               2.0.2              pyhd3eb1b0_0
pywavelets                1.3.0            py39h2bbff1b_0
pywin32                   302              py39h2bbff1b_2
pywin32-ctypes            0.2.0           py39haa95532_1000
pywinpty                  2.0.2            py39h5da7b33_0
pyyaml                    6.0              py39h2bbff1b_1
pyzmq                     23.2.0           py39hd77b12b_0
qdarkstyle                3.0.2              pyhd3eb1b0_0
qstylizer                 0.1.10             pyhd3eb1b0_0
qt                        5.9.7            vc14h73c81de_0
qtawesome                 1.0.3              pyhd3eb1b0_0
qtconsole                 5.2.2              pyhd3eb1b0_0
qtpy                      2.2.0            py39haa95532_0
queuelib                  1.5.0            py39haa95532_0
regex                     2022.7.9         py39h2bbff1b_0
requests                  2.28.1           py39haa95532_0
requests-file             1.5.1              pyhd3eb1b0_0
requests-oauthlib         1.3.1                    pypi_0    pypi
rich                      13.3.1                   pypi_0    pypi
rope                      0.22.0             pyhd3eb1b0_0
rsa                       4.9                      pypi_0    pypi
rtree                     0.9.7            py39h2eaa2aa_1
ruamel.yaml               0.17.21          py39h2bbff1b_0
ruamel.yaml.clib          0.2.6            py39h2bbff1b_1
ruamel_yaml               0.15.100         py39h2bbff1b_0
s3transfer                0.6.0            py39haa95532_0
scikit-image              0.19.2           py39hf11a4ad_0
scikit-learn              1.0.2            py39hf11a4ad_1
scikit-learn-intelex      2021.6.0         py39haa95532_0
scipy                     1.9.1            py39he11b74f_0
scrapy                    2.6.2            py39haa95532_0
seaborn                   0.11.2             pyhd3eb1b0_0
send2trash                1.8.0              pyhd3eb1b0_1
service_identity          18.1.0             pyhd3eb1b0_1
setuptools                63.4.1           py39haa95532_0
sip                       4.19.13          py39hd77b12b_0
six                       1.16.0             pyhd3eb1b0_1
smart_open                5.2.1            py39haa95532_0
snappy                    1.1.9                h6c2663c_0
sniffio                   1.2.0            py39haa95532_1
snowballstemmer           2.2.0              pyhd3eb1b0_0
sortedcollections         2.1.0              pyhd3eb1b0_0
sortedcontainers          2.4.0              pyhd3eb1b0_0
soupsieve                 2.3.1              pyhd3eb1b0_0
sphinx                    5.0.2            py39haa95532_0
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0
spyder                    5.2.2            py39haa95532_1
spyder-kernels            2.2.1            py39haa95532_0
sqlalchemy                1.4.39           py39h2bbff1b_0
sqlite                    3.39.3               h2bbff1b_0
stable-baselines3         1.7.0                    pypi_0    pypi
statsmodels               0.13.2           py39h2bbff1b_0
sympy                     1.10.1           py39haa95532_0
tabulate                  0.8.10           py39haa95532_0
tbb                       2021.6.0             h59b6b97_0
tbb4py                    2021.6.0         py39h59b6b97_0
tblib                     1.7.0              pyhd3eb1b0_0
tenacity                  8.0.1            py39haa95532_1
tensorboard               2.11.2                   pypi_0    pypi
tensorboard-data-server   0.6.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.1                    pypi_0    pypi
termcolor                 2.2.0                    pypi_0    pypi
terminado                 0.13.1           py39haa95532_0
testpath                  0.6.0            py39haa95532_0
text-unidecode            1.3                pyhd3eb1b0_0
textdistance              4.2.1              pyhd3eb1b0_0
threadpoolctl             2.2.0              pyh0d69192_0
three-merge               0.1.1              pyhd3eb1b0_0
tifffile                  2021.7.2           pyhd3eb1b0_2
tinycss                   0.4             pyhd3eb1b0_1002
tk                        8.6.12               h2bbff1b_0
tldextract                3.2.0              pyhd3eb1b0_0
toml                      0.10.2             pyhd3eb1b0_0
tomli                     2.0.1            py39haa95532_0
tomlkit                   0.11.1           py39haa95532_0
toolz                     0.11.2             pyhd3eb1b0_0
torch                     1.13.1                   pypi_0    pypi
torchaudio                0.13.1                 py39_cpu    pytorch
torchvision               0.14.1                 py39_cpu    pytorch
tornado                   6.1              py39h2bbff1b_0
tqdm                      4.64.1           py39haa95532_0
traitlets                 5.1.1              pyhd3eb1b0_0
twisted                   22.2.0           py39h2bbff1b_1
twisted-iocpsupport       1.0.2            py39h2bbff1b_0
typing-extensions         4.3.0            py39haa95532_0
typing_extensions         4.3.0            py39haa95532_0
tzdata                    2022c                h04d1e81_0
ujson                     5.4.0            py39hd77b12b_0
unidecode                 1.2.0              pyhd3eb1b0_0
urllib3                   1.26.11          py39haa95532_0
vc                        14.2                 h21ff451_1
vec-noise                 1.1.4                    pypi_0    pypi
vs2015_runtime            14.27.29016          h5e58377_2
w3lib                     1.21.0             pyhd3eb1b0_0
watchdog                  2.1.6            py39haa95532_0
wcwidth                   0.2.5              pyhd3eb1b0_0
webencodings              0.5.1            py39haa95532_1
websocket-client          0.58.0           py39haa95532_4
werkzeug                  2.0.3              pyhd3eb1b0_0
wheel                     0.37.1             pyhd3eb1b0_0
widgetsnbextension        3.5.2            py39haa95532_0
win_inet_pton             1.1.0            py39haa95532_0
win_unicode_console       0.5              py39haa95532_0
wincertstore              0.2              py39haa95532_2
winpty                    0.4.3                         4
wrapt                     1.14.1           py39h2bbff1b_0
xarray                    0.20.1             pyhd3eb1b0_1
xlrd                      2.0.1              pyhd3eb1b0_0
xlsxwriter                3.0.3              pyhd3eb1b0_0
xlwings                   0.27.15          py39haa95532_0
xz                        5.2.6                h8cc25b3_0
yaml                      0.2.5                he774522_0
yapf                      0.31.0             pyhd3eb1b0_0
zeromq                    4.3.4                hd77b12b_0
zfp                       0.5.5                hd77b12b_6
zict                      2.1.0            py39haa95532_0
zipp                      3.8.0            py39haa95532_0
zlib                      1.2.12               h8cc25b3_3
zope                      1.0              py39haa95532_1
zope.interface            5.4.0            py39h2bbff1b_0
zstd                      1.5.2                h19a0ad4_0

EDIT - note I have replaced my username with %USER% for privacy

@vsajip
Copy link
Contributor

vsajip commented Apr 25, 2023

Can you repeat the failing run invoked with --log to log to a file? The resource finder does some logging and the log might show why it fails to find a resource. The fact that it works when run again suggests that the problem isn't actually that the file is missing, just that the finder returns None for a reason yet unclear.

@anoban
Copy link

anoban commented Jul 15, 2023

Hi there! It's 15/07/2023 and I think this issue has resurfaced again!
I'm on a Windows 11 Home 22H2 machine with Python 3.11.4 installed globally. I received an update for pip today.

PS D:\> pip list --outdated
Package  Version Latest Type
-------- ------- ------ -----
pip      23.1.2  23.2   wheel
pywinpty 2.0.10  2.0.11 wheel
zipp     3.16.1  3.16.2 wheel

When I tried to upgrade pip via python -m pip install pip --upgrade I received the same ValueError discussed above.
Here's the error message:

&"C:\Program Files\Python311\python.exe" -m pip install pip --upgrade
Requirement already satisfied: pip in c:\users\anoban\appdata\roaming\python\python311\site-packages (23.1.2)
Collecting pip
  Using cached pip-23.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.1.2
    Uninstalling pip-23.1.2:
      Successfully uninstalled pip-23.1.2
  Rolling back uninstall of pip
  Moving to c:\users\anoban\appdata\roaming\python\python311\scripts\
   from C:\Users\Anoban\AppData\Roaming\Python\Python311\~cripts
  Moving to c:\users\anoban\appdata\roaming\python\python311\site-packages\pip-23.1.2.dist-info\
   from C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\~ip-23.1.2.dist-info
  Moving to c:\users\anoban\appdata\roaming\python\python311\site-packages\pip\
   from C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\cli\base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\commands\install.py", line 449, in run
    installed = install_given_reqs(
                ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\req\__init__.py", line 72, in install_given_reqs
    requirement.install(
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\req\req_install.py", line 800, in install
    install_wheel(
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 731, in install_wheel
    _install_wheel(
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 648, in _install_wheel
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 436, in make_multiple
    filenames.extend(self.make(specification, options))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 429, in make
    return super().make(specification, options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 425, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 325, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 249, in _write_script
    launcher = self._get_launcher('t')
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 404, in _get_launcher
    raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

But the required t64.exe is indeed there!

PS D:\> Get-ChildItem "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib"

    Directory: C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          21/05/2023  1:10 am                __pycache__
-a---          21/05/2023  1:10 am            581 __init__.py
-a---          21/05/2023  1:10 am          41259 compat.py
-a---          21/05/2023  1:10 am          51697 database.py
-a---          21/05/2023  1:10 am          20834 index.py
-a---          21/05/2023  1:10 am          51991 locators.py
-a---          21/05/2023  1:10 am          14811 manifest.py
-a---          21/05/2023  1:10 am           5058 markers.py
-a---          21/05/2023  1:10 am          39801 metadata.py
-a---          21/05/2023  1:10 am          10820 resources.py
-a---          21/05/2023  1:10 am          18102 scripts.py
-a---          21/05/2023  1:10 am          97792 t32.exe
-a---          21/05/2023  1:10 am         182784 t64-arm.exe
-a---          21/05/2023  1:10 am         108032 t64.exe
-a---          21/05/2023  1:10 am          66262 util.py
-a---          21/05/2023  1:10 am          23513 version.py
-a---          21/05/2023  1:10 am          91648 w32.exe
-a---          21/05/2023  1:10 am         168448 w64-arm.exe
-a---          21/05/2023  1:10 am         101888 w64.exe
-a---          21/05/2023  1:10 am          43898 wheel.py

Now that I have uninstalled and reinstalled setuptools, I run into a new error. I think this upgrade attempt has corrupted pip on my machine.

PS D:\> python -m pip install pip --upgrade
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip\__main__.py", line 29, in <module>
    from pip._internal.cli.main import main as _main
ModuleNotFoundError: No module named 'pip._internal'

But the required module is present in this directory! I'm not an expert in Python's inner workings. I think this has to do something with the installer looking for files in wrong directories! Is it possible that the script may be searching C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip instead of C:\Program Files\Python311\Lib\site-packages\pip? Because it appears like the former is the directory where the script was invoked from!.

 Get-ChildItem "C:\Program Files\Python311\Lib\site-packages\pip\_internal"

    Directory: C:\Program Files\Python311\Lib\site-packages\pip\_internal

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          15/07/2023  4:29 pm                __pycache__
d----          15/07/2023  4:29 pm                cli
d----          15/07/2023  4:29 pm                commands
d----          15/07/2023  4:29 pm                distributions
d----          15/07/2023  4:29 pm                index
d----          15/07/2023  4:29 pm                locations
d----          15/07/2023  4:29 pm                metadata
d----          15/07/2023  4:29 pm                models
d----          15/07/2023  4:29 pm                network
d----          15/07/2023  4:29 pm                operations
d----          15/07/2023  4:29 pm                req
d----          15/07/2023  4:29 pm                resolution
d----          15/07/2023  4:29 pm                utils
d----          15/07/2023  4:29 pm                vcs
-a---          15/07/2023  4:29 pm            573 __init__.py
-a---          15/07/2023  4:29 pm          10243 build_env.py
-a---          15/07/2023  4:29 pm          10429 cache.py
-a---          15/07/2023  4:29 pm          13839 configuration.py
-a---          15/07/2023  4:29 pm          23737 exceptions.py
-a---          15/07/2023  4:29 pm            340 main.py
-a---          15/07/2023  4:29 pm           7161 pyproject.py
-a---          15/07/2023  4:29 pm           8167 self_outdated_check.py
-a---          15/07/2023  4:29 pm          11842 wheel_builder.py

I'd like to know what is happening here, thank you! (P.S I cannot afford a reinstall of Python and all my deps). I was hoping to find a solution in this thread, but it left me stuck in the middle of nowhere.

@pradyunsg
Copy link
Member

pradyunsg commented Jul 15, 2023

@anoban To recover, you can delete the following directories:

  • C:\Program Files\Python311\Lib\site-packages\pip
  • C:\Program Files\Python311\Lib\site-packages\pip-(something).dist-info
  • C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip
  • C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip-(something).dist-info

And then fetch and run get-pip.py as described in https://pip.pypa.io/en/stable/installation/#get-pip-py.

@anoban
Copy link

anoban commented Jul 16, 2023

@pradyunsg Thank you! That solved the problem. Appreciate the help :)

@kevin-partin
Copy link

This fixed the problem for me under Windows 11, running Python 3.11.4, from PowerShell:

python -m pip uninstall pip setuptools
python -m ensurepip --upgrade
python.exe -m pip install --upgrade pip setuptools

@LeaDevelop
Copy link

Reproduced the issue as well here

@ubranch
Copy link

ubranch commented Dec 18, 2023

This fixed the problem for me under Windows 11, running Python 3.11.4, from PowerShell:

python -m pip uninstall pip setuptools python -m ensurepip --upgrade python.exe -m pip install --upgrade pip setuptools

this one worked as well! thanks <3

@notatallshaw
Copy link
Member

notatallshaw commented Mar 9, 2024

I'm currently getting this error trying to install the pip repo in editable mode on Python 3.12:

  1. Download and install Python 3.12.2 Windows 64 bit installer: https://www.python.org/downloads/release/python-3122/
  2. git clone https://github.com/pypa/pip
  3. cd pip
  4. py -3.12 -m venv .venv
  5. .\.venv\Scripts\activate
  6. python -m pip install -e .

Here's the full debug output: https://gist.github.com/notatallshaw/f6602fef5893f29da8493518ece681d0

I've not tried any of the recovery steps yet.

@notatallshaw
Copy link
Member

notatallshaw commented Apr 17, 2024

I can still reproduce the steps with Python 3.12.3, in fact it seems I am no longer able to test pip on Windows, as none of the recovery steps seem to work for me either.

@masquinyo
Copy link

This fixed the problem for me under Windows 11, running Python 3.11.4, from PowerShell:

python -m pip uninstall pip setuptools python -m ensurepip --upgrade python.exe -m pip install --upgrade pip setuptools

These steps really did it for me, thanks!

@pradyunsg
Copy link
Member

This should be resolved starting pip 24.1b1 with #12669.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests