Merge pull request #2976 from ahkui/ahkui-fix-python-pip
workspace - install pip from python script
This commit is contained in:
commit
77be7c4001
@ -1124,7 +1124,10 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||
ARG INSTALL_PYTHON=false
|
||||
|
||||
RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
||||
apt-get -y install python python-pip python-dev build-essential \
|
||||
apt-get -y install python python-dev build-essential \
|
||||
&& curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
|
||||
&& python get-pip.py \
|
||||
&& rm get-pip.py \
|
||||
&& python -m pip install --upgrade pip \
|
||||
&& python -m pip install --upgrade virtualenv \
|
||||
;fi
|
||||
@ -1136,7 +1139,10 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
||||
ARG INSTALL_PYTHON3=false
|
||||
|
||||
RUN if [ ${INSTALL_PYTHON3} = true ]; then \
|
||||
apt-get -y install python3 python3-pip python3-dev build-essential \
|
||||
apt-get -y install python3 python3-dev build-essential \
|
||||
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
||||
&& python3 get-pip.py \
|
||||
&& rm get-pip.py \
|
||||
&& python3 -m pip install --upgrade --force-reinstall pip \
|
||||
&& python3 -m pip install --upgrade virtualenv \
|
||||
;fi
|
||||
|
Loading…
Reference in New Issue
Block a user