[GH-ISSUE #925] The virtual environment was not created successfully because ensurepip is not available. #549

Closed
opened 2026-03-01 21:44:23 +03:00 by kerem · 0 comments
Owner

Originally created by @alex-bender on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/925

Can not launch it on system python version 3.8
and on anaconda as well

System information

- Operating System: Ubuntu 20
- Architecture: x64 (64-bit)
- `act` version: 0.2.25

Expected behaviour

Job launched

Actual behaviour

``` Working directory '/home/alex/projects/proj' | Start installing dependencies | The virtual environment was not created successfully because ensurepip is not | available. On Debian/Ubuntu systems, you need to install the python3-venv | package using the following command. | | apt install python3.8-venv | | You may need to use sudo with that command. After installing the python3-venv | package, recreate your virtual environment. | | Failing command: ['/home/alex/projects/proj/proj/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip'] | [Continuous Integration/run-tests] Failure - Install dependencies and run test ```
sudo apt install python3.8-venv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3.8-venv is already the newest version (3.8.10-0ubuntu1~20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
python3 -Im ensurepip --upgrade --default-pip
ensurepip is disabled in Debian/Ubuntu for the system python.

Python modules for the system python are usually handled by dpkg and apt-get.

    apt install python3-<module name>

Install the python3-pip package to use pip itself.  Using pip together
with the system python might have unexpected results for any system installed
module, so use it on your own risk, or make sure to only use it in virtual
environments.

UPD: Disregard please:

problem was in missing
apt update command

Originally created by @alex-bender on GitHub (Dec 13, 2021). Original GitHub issue: https://github.com/nektos/act/issues/925 Can not launch it on system python version 3.8 and on anaconda as well ## System information - Operating System: Ubuntu 20 - Architecture: x64 (64-bit) - `act` version: 0.2.25 ## Expected behaviour Job launched ## Actual behaviour <details> ``` Working directory '/home/alex/projects/proj' | Start installing dependencies | The virtual environment was not created successfully because ensurepip is not | available. On Debian/Ubuntu systems, you need to install the python3-venv | package using the following command. | | apt install python3.8-venv | | You may need to use sudo with that command. After installing the python3-venv | package, recreate your virtual environment. | | Failing command: ['/home/alex/projects/proj/proj/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip'] | [Continuous Integration/run-tests] ❌ Failure - Install dependencies and run test ``` ``` sudo apt install python3.8-venv Reading package lists... Done Building dependency tree Reading state information... Done python3.8-venv is already the newest version (3.8.10-0ubuntu1~20.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ``` ``` python3 -Im ensurepip --upgrade --default-pip ensurepip is disabled in Debian/Ubuntu for the system python. Python modules for the system python are usually handled by dpkg and apt-get. apt install python3-<module name> Install the python3-pip package to use pip itself. Using pip together with the system python might have unexpected results for any system installed module, so use it on your own risk, or make sure to only use it in virtual environments. ``` </details> ## UPD: Disregard please: problem was in missing `apt update` command
kerem 2026-03-01 21:44:23 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#549
No description provided.