question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When running Python setup in Windows VM fails with pip

See original GitHub issue

Description: We have matrix job which setups Python. For Linux and Mac that Python setup works fine, but for Windows host, there is error like this:

Successfully setup CPython (3.7.9)
C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe cache dir
Error: The process 'C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe' failed with exit code 3221225477

Action version: actions/setup-python@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version: 3.7, 3.8, 3.9

Repro steps:
Link to yaml definition and here is link to execution

Expected behavior: Python would be setup would have been completed without errors.

Actual behavior: There is error:

Successfully setup CPython (3.7.9)
C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe cache dir
Error: The process 'C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe' failed with exit code 3221225477

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aaltatcommented, Feb 4, 2022

Well, could be duplicate. Although my problems happens in setup phase.

But using actions/setup-python@v2.3.2 fixes the problem, thank you.

0reactions
aaltatcommented, Feb 4, 2022

Yes, now it works. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"pip install unroll": "python setup.py egg_info" failed with error ...
Open a command prompt in elevated mode (run as administrator) · Firstly do pip install ez_setup · Then do pip install unroll (It...
Read more >
Python: Fix 'pip is not recognized' | Easy - YouTube
trying to install a new PyPi package, but are unable to get pip to work? Does python work? Well, this video should cover...
Read more >
Pip Command Not Found on Windows: A Guide | Built In
A “pip: command not found” error occurs when you haven't properly installed the package installer for Python (pip) on your computer.
Read more >
How to Install PIP for Python on Windows - Liquid Web
Step 1: Check if Pip is Already Installed · Step 2: Confirm that Python is installed. · Step 3: Installing Pip on Windows...
Read more >
Installing/Upgrading Nutanix Guest Tools on a Windows family ...
Check if Python is already installed in the system. NGT has its own Python version installed in C:\Program Files\Nutanix\Python27\python.exe.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found