admin管理员组

文章数量:1128409

I've recently come across a problem with venv that i'm unable to resolve the easy way.

I'm creating a Django app for my company. I'm doing my CI in an Alpine Python 3.7.2 runner without sudo privileges. After trying to create it with :

python -m ensurepip --upgrade

I come accross this error :

/usr/local/bin/python: No module named ensurepip

To solve it, i've tried to use get-pip.py script to create a temporary venv environment with pip, but it didn't work.

To reproduce it, use an Alpine Python 3.9 Docker and try using : python -m ensurepip --upgrade

Do someone have an idea on how to proceed ?

Thanks everyone.

本文标签: pythonIs it possible to install ensurepip without sudoStack Overflow