Skip to content

Commit

Permalink
use trusted host to avoid SSL error, see https://stackoverflow.com/qu…
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed May 11, 2024
1 parent b223c88 commit 3e44f64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +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: )
echo -e "[global]\ntrusted-host = pypi.python.org\n pypi.org\n files.pythonhosted.org" | sudo tee /etc/pip.conf # https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi
sudo pip install -I 'pip<10' # on melodic reinsall pip9.0.3, otherwise it fails on, ImportError: Entry point ('console_scripts', 'pip2') not found
fi

Expand Down

0 comments on commit 3e44f64

Please sign in to comment.