From 6b9a045561b886174f19a1011e362f6121897577 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 11 May 2024 10:54:45 +0900 Subject: [PATCH] use trusted host to avoid SSL error, see https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi --- travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis.sh b/travis.sh index bfb958a..a67cc83 100755 --- a/travis.sh +++ b/travis.sh @@ -207,7 +207,7 @@ curl https://files.pythonhosted.org/packages/c4/44/e6b8056b6c8f2bfd1445cc9990f47 (cd /tmp; tar -xzf pip-9.0.3.tar.gz) sudo -H python -m easy_install /tmp/pip-9.0.3 if [[ ! "$ROS_DISTRO" =~ "hydro" ]]; then # on hydro: Could not find a version that satisfies the requirement pip<10 (from versions: ) - sudo pip install -I 'pip<10' # on melodic reinsall pip9.0.3, otherwise it fails on, ImportError: Entry point ('console_scripts', 'pip2') not found + sudo pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -I 'pip<10' # on melodic reinsall pip9.0.3, otherwise it fails on, ImportError: Entry point ('console_scripts', 'pip2') not found fi hash -r