Closed BlueCog closed 1 year ago
It seems that micropipenv installed via dnf
is linked to the (then) default Python version.... So in my above case only python3.6 was available when micropipenv was installed.
My solution for now is to not install micropipenv via dnf but do:
pip
Not sure if the above case is 'by design' or that we need some sort of extra flag to define the python version (i would expect to fall back to the activated venv).
I was writing this comment when you submitted your solution:
Where is the micropipenv installed from? If you have micropipenv from the RHEL RPM package, it's installed for the main Python (3.6), and running it like a command (micropipenv …
) will use the main Python. You have three possible ways forward:
Link to the S2I Python container is missing in the previous comment: https://github.com/sclorg/s2i-python-container
Thanks @frenzymadness for your reply. I've chosen for your first solution.
Describe the bug
Registering this an a bug, but maybe i'm missing something...
Trying to run
micropipenv install --deploy
from an python3.9 venv results in:I'm running above command in an venv:
The result of
python --version
isPython 3.9.13
Contents of Pipfile:
To Reproduce
This is an docker environment (building an image via a Dockerfile) with image:
redhatio/ubi8-minimal:8.6
Python version 3.6 and version 3.9 are available in the image (python 3.9 is installed viadnf
)Example Dockerfile:
Expected behavior I would expect to use micropipenv the Python version used in the activated venv.