Skip to content

No module named pip on self-hosted runner #2277

Open
@michprev

Description

@michprev

Description

Hello,
I am observing the following error when using pypa/[email protected] in my action:

  /home/username/actions-runner/_work/_tool/Python/3.12.9/x64/bin/python: No module named pip
  Traceback (most recent call last):
    File "<stdin>", line 28, in <module>
    File "/home/username/actions-runner/_work/_tool/Python/3.12.9/x64/lib/python3.12/venv/__init__.py", line 80, in create
      self.post_setup(context)
    File "<stdin>", line 20, in post_setup
    File "/home/username/actions-runner/_work/_tool/Python/3.12.9/x64/lib/python3.12/subprocess.py", line 573, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['/home/username/actions-runner/_work/_tool/Python/3.12.9/x64/bin/python', '-m', 'pip', '--python', '/home/username/actions-runner/_work/_temp/cibw/bin/python', 'install', '/home/username/actions-runner/_work/_actions/pypa/cibuildwheel/v2.22.0']' returned non-zero exit status 1.

The error happens at the Install cibuildwheel step (

# Install cibuildwheel
).

The machine is Ubuntu 23 with python3 and python3-pip installed through apt (externally managed environment).

Build log

No response

CI config

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions