Skip to content

Commit feb7121

Browse files
authored
[201911] Fix easy_install error when installing pip (#7272)
see below error: + sudo https_proxy= LANG=C chroot ./fsroot easy_install pip==20.3.3 Searching for pip==20.3.3 Reading https://pypi.python.org/simple/pip/ Couldn't find index page for 'pip' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ No local packages or working download links found for pip==20.3.3 error: Could not find suitable distribution for Requirement.parse('pip==20.3.3') How I fix: Install python-pip via apt-get Pin the version to 20.3.3 Master has same changes. Signed-off-by: Abhishek Dosi <[email protected]>
1 parent b9f8348 commit feb7121

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_debian.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
302302
ndisc6 \
303303
makedumpfile \
304304
conntrack \
305+
python-pip \
305306
jq
306307

307308

@@ -400,7 +401,7 @@ if [[ $CONFIGURED_ARCH == amd64 ]]; then
400401
fi
401402

402403
## docker-py is needed by Ansible docker module
403-
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT easy_install 'pip==20.3.3'
404+
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install --upgrade 'pip==20.3.3'
404405
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'
405406
## Note: keep pip installed for maintainance purpose
406407

0 commit comments

Comments
 (0)