You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by je...@apache.org on 2022/02/04 17:31:28 UTC

[incubator-mxnet] branch v1.x updated: [v1.9.x] Fix pip installation in containers (#20864) (#20871)

This is an automated email from the ASF dual-hosted git repository.

jevans pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.x by this push:
     new fd6a6e8  [v1.9.x] Fix pip installation in containers (#20864) (#20871)
fd6a6e8 is described below

commit fd6a6e89e541ae5720af6d7e7f9eb6147bdb5d95
Author: Joe Evans <jo...@gmail.com>
AuthorDate: Fri Feb 4 09:10:13 2022 -0800

    [v1.9.x] Fix pip installation in containers (#20864) (#20871)
    
    * Fix pip install inside docker.
    
    * Update ci/docker/install/centos7_python.sh
    
    Co-authored-by: bgawrych <ba...@intel.com>
    
    * Update ci/docker/install/ubuntu_python.sh
    
    Co-authored-by: bgawrych <ba...@intel.com>
    
    Co-authored-by: bgawrych <ba...@intel.com>
    
    Co-authored-by: bgawrych <ba...@intel.com>
---
 ci/docker/install/centos7_python.sh | 4 ++--
 ci/docker/install/ubuntu_python.sh  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ci/docker/install/centos7_python.sh b/ci/docker/install/centos7_python.sh
index 2f4b5f7..b7082d3 100755
--- a/ci/docker/install/centos7_python.sh
+++ b/ci/docker/install/centos7_python.sh
@@ -27,7 +27,7 @@ yum -y install https://repo.ius.io/ius-release-el7.rpm
 yum -y install python36u
 
 # Install PIP
-curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
+curl "https://bootstrap.pypa.io/pip/3.6/get-pip.py" -o "get-pip.py"
 python3.6 get-pip.py
 # Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
-pip3 install nose pylint 'numpy>1.16.0,<1.19.0' nose-timer requests 'h5py<3' scipy==1.2.3
+python3.6 -m pip install nose pylint 'numpy>1.16.0,<1.19.0' nose-timer requests 'h5py<3' scipy==1.2.3
diff --git a/ci/docker/install/ubuntu_python.sh b/ci/docker/install/ubuntu_python.sh
index ea93067..bdce2ab 100755
--- a/ci/docker/install/ubuntu_python.sh
+++ b/ci/docker/install/ubuntu_python.sh
@@ -32,5 +32,5 @@ ln -sf /usr/bin/python3.7 /usr/local/bin/python3
 
 # the version of the pip shipped with ubuntu may be too lower, install a recent version here
 wget -nv https://bootstrap.pypa.io/get-pip.py
-python3 get-pip.py
-pip3 install -r /work/requirements
+/usr/local/bin/python3 get-pip.py
+/usr/local/bin/python3 -m pip install -r /work/requirements