I cannot make
venv.create() work for Windows under the context of Github Actions.
It works for Ubuntus. It works for Windows in a Virtualbox VM in my machine.
I added a test in the project I’m facing this problem just to show this. The test is very simple:
def test_create_venv(tmp_path): """Test to show that venv.create doesn't work in Github Actions.""" import venv venv.create(str(tmp_path), with_pip=True)
IIUC, it fails because deep inside the creation it’s not finding the python process to ensure
pip is there.
Thanks for the help!