GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pip can't be installed on Windows · Issue #5681 · RustPython/RustPython

pip can't be installed on Windows #5681

New issue
Copy link
New issue
Copy link
Closed
#6211
#5740
Closed
pip can't be installed on Windows#5681
#6211
#5740
Copy link
Labels
C-bugSomething isn't workingSomething isn't working

Description

@zzzy-zh86
zzzy-zh86
opened on Apr 8, 2025
Issue body actions

It seems that pip cannot be installed on Windows.

Running `target\release\rustpython.exe --install-pip`
Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
  File "D:\code\rust\RustPython\Lib\runpy.py", line 224, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "D:\code\rust\RustPython\Lib\runpy.py", line 94, in _run_module_code
    with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):
  File "D:\code\rust\RustPython\Lib\runpy.py", line 97, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "D:\code\rust\RustPython\Lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\__main__.py", line 22, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\cli\main.py", line 10, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\cli\autocompletion.py", line 10, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\cli\main_parser.py", line 9, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\build_env.py", line 19, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\cli\spinners.py", line 9, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\utils\logging.py", line 29, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\utils\misc.py", line 41, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\locations\__init__.py", line 14, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\locations\_sysconfig.py", line 11, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\locations\base.py", line 9, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_internal\utils\appdirs.py", line 13, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_vendor\platformdirs\__init__.py", line 46, in <module>
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_vendor\platformdirs\__init__.py", line 26, in _set_platform_dir_class
  File "C:\Users\Yi\AppData\Local\Temp\tmpa005qsby\pip-23.2.1-py3-none-any.whl\pip\_vendor\platformdirs\windows.py", line 4, in <module>
  File "D:\code\rust\RustPython\Lib\ctypes\__init__.py", line 40, in <module>
    from _ctypes import _non_existing_function
ImportError: cannot import name '_non_existing_function'
Traceback (most recent call last):
  File "D:\code\rust\RustPython\Lib\runpy.py", line 197, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\code\rust\RustPython\Lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\code\rust\RustPython\Lib\ensurepip\__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "D:\code\rust\RustPython\Lib\ensurepip\__init__.py", line 290, in _main
    default_pip=args.default_pip,
  File "D:\code\rust\RustPython\Lib\ensurepip\__init__.py", line 167, in _bootstrap
    with tempfile.TemporaryDirectory() as tmpdir:
  File "D:\code\rust\RustPython\Lib\ensurepip\__init__.py", line 200, in _bootstrap
    return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
  File "D:\code\rust\RustPython\Lib\ensurepip\__init__.py", line 101, in _run_pip
    return subprocess.run(cmd, check=True).returncode
  File "D:\code\rust\RustPython\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
  File "D:\code\rust\RustPython\Lib\subprocess.py", line 572, in run
    output=stdout, stderr=stderr)
CalledProcessError: (1, ['D:\\code\\rust\\RustPython\\target\\release\\rustpython.exe', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'C:\\\\Users\\\\Yi\\\\AppData\\\\Local\\\\Temp\\\\tmpa005qsby\\\\pip-23.2.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'C:\\\\Users\\\\Yi\\\\AppData\\\\Local\\\\Temp\\\\tmpa005qsby\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n'])
error: process didn't exit successfully: `target\release\rustpython.exe --install-pip` (exit code: 1)
’‘’

Activity

  1. zzzy-zh86
    added
    C-bugSomething isn't workingSomething isn't working
    on Apr 8, 2025
  2. arihant2math commented on Apr 10, 2025

    @arihant2math
    arihant2math
    on Apr 10, 2025
    Contributor
    More actions

    Duplicate of #5332

  3. pushfoo commented on Oct 7, 2025

    @pushfoo
    pushfoo
    on Oct 7, 2025
    More actions

    I also see the ImportError: cannot import name '_non_existing_function on Debian 13. Would it be worth renaming this specific ticket to something ctypes-related?

  4. arihant2math commented on Oct 8, 2025

    @arihant2math
    arihant2math
    on Oct 8, 2025
    Contributor
    More actions

    that's intentional ... the idea is that ctypes isn't supposed to be imported and some polyfill is used instead.

  5. youknowone
    closed this as completedin #5740on Oct 23, 2025
  6. youknowone
    reopened this on Dec 5, 2025
  7. youknowone commented on Dec 5, 2025

    @youknowone
    youknowone
    on Dec 5, 2025
    Member
    More actions

    #2671 will be the original issue of this

  8. youknowone
    closed this as completedon Dec 5, 2025
  9. youknowone commented on Dec 8, 2025

    @youknowone
    youknowone
    on Dec 8, 2025
    Member
    More actions

    Good news: Now PIP is working on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.